1
0
Fork 0

Model irq 0 stack layout in a more compatible way. Fixes M.U.L.E. booter. (ripsaw)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3781
This commit is contained in:
Peter Veenstra 2012-06-08 14:23:55 +00:00
parent 98d04262ec
commit 498e583251
2 changed files with 18 additions and 17 deletions

View file

@ -997,14 +997,14 @@ public:
CALLBACK_Setup(call_irq0,INT8_Handler,CB_IRQ0,Real2Phys(BIOS_DEFAULT_IRQ0_LOCATION),"IRQ 0 Clock");
RealSetVec(0x08,BIOS_DEFAULT_IRQ0_LOCATION);
// pseudocode for CB_IRQ0:
// sti
// callback INT8_Handler
// push ax,dx,ds
// push ds,ax,dx
// int 0x1c
// cli
// pop ds,dx
// mov al, 0x20
// out 0x20, al
// pop ax
// pop dx,ax,ds
// iret
mem_writed(BIOS_TIMER,0); //Calculate the correct time