Previous 199869 Revisions Next

r33026 Tuesday 28th October, 2014 at 02:12:47 UTC by Carl
i386: fix more presence checks (nw)
[src/emu/cpu/i386]i386.c

trunk/src/emu/cpu/i386/i386.c
r241537r241538
19771977               logerror("CALL: Task Gate: Gate DPL is less than RPL.\n");
19781978               FAULT(FAULT_TS,selector & ~0x03) // #TS(selector)
19791979            }
1980            if(gate.ar & 0x0080)
1980            if((gate.ar & 0x0080) == 0)
19811981            {
19821982               logerror("CALL: Task Gate: Gate is not present.\n");
19831983               FAULT(FAULT_NP,selector & ~0x03) // #NP(selector)
r241537r241538
20032003               logerror("CALL: Task Gate: TSS is busy.\n");
20042004               FAULT(FAULT_TS,gate.selector & ~0x03) // #TS(selector)
20052005            }
2006            if(desc.flags & 0x0080)
2006            if((desc.flags & 0x0080) == 0)
20072007            {
20082008               logerror("CALL: Task Gate: TSS is not present.\n");
20092009               FAULT(FAULT_NP,gate.selector & ~0x03) // #TS(selector)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team