seperated the hardware and the software reset.
Everything makes much more sense now.
software reset: don't touch irq 12 handlers(User Interupt Routine)
Hardware reset: do touch irq 12
A software reset is issued if a new videomode is set(now it doesn't destroy the UIR)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1251