summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/i386/i386op32.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/i386/i386op32.hxx')
-rw-r--r--src/devices/cpu/i386/i386op32.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/i386/i386op32.hxx b/src/devices/cpu/i386/i386op32.hxx
index e333bbaaa70..450cf097e86 100644
--- a/src/devices/cpu/i386/i386op32.hxx
+++ b/src/devices/cpu/i386/i386op32.hxx
@@ -2104,7 +2104,7 @@ void i386_device::i386_sub_r32_rm32() // Opcode 0x2b
STORE_REG32(modrm, dst);
CYCLES(CYCLES_ALU_REG_REG);
} else {
- uint32_t ea = GetEA(modrm,1);
+ uint32_t ea = GetEA(modrm,0);
src = READ32(ea);
dst = LOAD_REG32(modrm);
dst = SUB32(dst, src);