about summary refs log tree commit diff stats
path: root/subx/016index_addressing.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-07 22:20:29 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-07 22:20:29 -0700
commit1a62e61df42bfdf001010700c1e1042c67d62ec2 (patch)
tree6bc1c8ed96ddaac8cfc9e403ecfe4778e0cf9795 /subx/016index_addressing.cc
parente07a3f2886b117970b3cd58f7cd6806cbfe5cc4a (diff)
downloadmu-1a62e61df42bfdf001010700c1e1042c67d62ec2.tar.gz
4538
Diffstat (limited to 'subx/016index_addressing.cc')
-rw-r--r--subx/016index_addressing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/016index_addressing.cc b/subx/016index_addressing.cc
index b1b7e563..58169083 100644
--- a/subx/016index_addressing.cc
+++ b/subx/016index_addressing.cc
@@ -30,7 +30,7 @@ uint32_t effective_address_from_sib(uint8_t mod) {
   }
   else {
     // base == EBP && mod == 0
-    addr = imm32();  // ignore base
+    addr = next32();  // ignore base
     trace(90, "run") << "effective address is initially 0x" << std::hex << addr << " (disp32)" << end();
   }
   uint8_t index = (sib>>3)&0x7;