1
0
Fork 0

Changed cpu core names

Changed the exception handling of far jmp/calls interrupts and some others
Added x86 dynamic core startup code
Some new defines to enable/disable the dynamic core


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1513
This commit is contained in:
Sjoerd van der Berg 2004-01-01 12:26:08 +00:00
parent 5cc3d9d24b
commit 23a4d8fe3d
11 changed files with 82 additions and 93 deletions

View file

@ -981,7 +981,7 @@ Bitu DPMI::SimulateInt(void)
// Push flags from structure on stack
DPMI_LOG("DPMI: SimInt1: StackInfo %04X:%04X (%02X %02X)",SegValue(ss),reg_esp,mem_readb(0xD0100+0x01FA),mem_readb(0xD0100+0x01FB));
reg_flags = mem_readw(data+0x20);
CPU_SW_Interrupt(num);
CPU_SW_Interrupt(num,0);
DPMI_LOG("DPMI: SimInt2: StackInfo %04X:%04X (%02X %02X)",SegValue(ss),reg_esp,mem_readb(0xD0100+0x01FA),mem_readb(0xD0100+0x01FB));
return 0;
};
@ -1043,7 +1043,7 @@ Bitu DPMI::ptorHandler(void)
DPMI_LOG("DPMI: INT %02X %04X called.",num,reg_ax);
// Prepare flags for real int
// CPU_SetFlagsw(reg_flags & 0x3ED5); // 0011111011010101b
CPU_SW_Interrupt(num);
CPU_SW_Interrupt(num,0);
return 0;
}
@ -1106,7 +1106,7 @@ Bitu DPMI::Int21Handler(void)
reg_esp = rm_sp;
// Call realmode interrupt
DPMI_LOG("DPMI: INT 21 %04X called.",reg_ax);
CPU_SW_Interrupt(0x21);
CPU_SW_Interrupt(0x21,0);
if (reg_ah==0x4C) {
// Shut doen dpmi and restore previous one
delete this;