1
0
Fork 0

CALLBACK_Idle() automatically sets the interrupt flag now.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@482
This commit is contained in:
Sjoerd van der Berg 2002-11-06 09:41:09 +00:00
parent 7da067b040
commit 09005620bb

View file

@ -52,6 +52,8 @@ Bitu CALLBACK_Allocate(void) {
void CALLBACK_Idle(void) {
/* this makes the cpu execute instructions to handle irq's and then come back */
bool oldintf=flags.intf;
flags.intf=true;
Bit16u oldcs=SegValue(cs);
Bit32u oldeip=reg_eip;
SegSet16(cs,CB_SEG);
@ -59,6 +61,7 @@ void CALLBACK_Idle(void) {
DOSBOX_RunMachine();
reg_eip=oldeip;
SegSet16(cs,oldcs);
flags.intf=oldintf;
}
static Bitu default_handler(void) {