Previous 15994 Revisions Next

r13989 Thursday 12th January, 2012 at 08:12:55 UTC by Barry Rodewald
i386: Fixed setting of IF flag when interrupts are triggered in virtual 8086 mode. (no whatsnew)
[src/emu/cpu/i386]i386.c

src/emu/cpu/i386/i386.c
r13988r13989
613613         tempflags = get_flags(cpustate);
614614         cpustate->VM = 0;
615615         cpustate->TF = 0;
616         if(irq_gate == 1)
616         if(type == 0x0e || type == 0x06)
617617            cpustate->IF = 0;
618618         tempSS = cpustate->sreg[SS].selector;
619619         tempESP = REG32(ESP);
r13988r13989
22412241         //SSDPL = (stack.flags >> 5) & 0x03;
22422242
22432243         /* Return to v86 mode */
2244         popmessage("IRET (%08x): Returning to Virtual 8086 mode.",cpustate->pc);
2244         logerror("IRET (%08x): Returning to Virtual 8086 mode.\n",cpustate->pc);
22452245         // Should these be done at this point?  The 386 programmers' reference is a bit confusing about this
22462246/*         if(RPL != 3)
22472247         {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team