Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/emu/cpu/i386/i386op32.c
- ===================================================================
- --- src/emu/cpu/i386/i386op32.c (revision 15930)
- +++ src/emu/cpu/i386/i386op32.c (working copy)
- @@ -3472,9 +3472,23 @@
- {
- UINT32 ea;
- if( cpustate->segment_prefix ) {
- - ea = i386_translate(cpustate, cpustate->segment_override, REG32(EBX) + REG8(AL), 0 );
- + if(cpustate->address_prefix)
- + {
- + ea = i386_translate(cpustate, cpustate->segment_override, REG16(BX) + REG8(AL), 0 );
- + }
- + else
- + {
- + ea = i386_translate(cpustate, cpustate->segment_override, REG32(EBX) + REG8(AL), 0 );
- + }
- } else {
- - ea = i386_translate(cpustate, DS, REG32(EBX) + REG8(AL), 0 );
- + if(cpustate->address_prefix)
- + {
- + ea = i386_translate(cpustate, DS, REG16(BX) + REG8(AL), 0 );
- + }
- + else
- + {
- + ea = i386_translate(cpustate, DS, REG32(EBX) + REG8(AL), 0 );
- + }
- }
- REG8(AL) = READ8(cpustate,ea);
- CYCLES(cpustate,CYCLES_XLAT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement