Previous 15994 Revisions Next

r14395 Wednesday 8th February, 2012 at 21:23:44 UTC by Barry Rodewald
i386: Added trap flag support for Second Reality [Carl]
[src/emu/cpu/i386]i386.c i386priv.h

src/emu/cpu/i386/i386priv.h
r14394r14395
240240
241241   UINT8 performed_intersegment_jump;
242242   UINT8 delayed_interrupt_enable;
243   UINT8 old_tf;
243244
244245   UINT32 cr[5];      // Control registers
245246   UINT32 dr[8];      // Debug registers
src/emu/cpu/i386/i386.c
r14394r14395
30993099      cpustate->address_prefix = 0;
31003100
31013101      cpustate->ext = 1;
3102      cpustate->old_tf = cpustate->TF;
31023103
31033104      cpustate->segment_prefix = 0;
31043105      cpustate->prev_eip = cpustate->eip;
r14394r14395
31133114      try
31143115      {
31153116         I386OP(decode_opcode)(cpustate);
3117         if(cpustate->TF && cpustate->old_tf)
3118         {
3119            cpustate->prev_eip = cpustate->eip;
3120            cpustate->ext = 0;
3121            i386_trap(cpustate,1,0,0);
3122         }
3123
31163124      }
31173125      catch(UINT64 e)
31183126      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team