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:
parent
7da067b040
commit
09005620bb
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue