about summary refs log tree commit diff stats
path: root/subx/019functions.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/019functions.cc
parente07a3f2886b117970b3cd58f7cd6806cbfe5cc4a (diff)
downloadmu-1a62e61df42bfdf001010700c1e1042c67d62ec2.tar.gz
4538
Diffstat (limited to 'subx/019functions.cc')
-rw-r--r--subx/019functions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/019functions.cc b/subx/019functions.cc
index 964ca977..fbc7e605 100644
--- a/subx/019functions.cc
+++ b/subx/019functions.cc
@@ -16,7 +16,7 @@ put(name, "e8", "call disp32");
 
 :(before "End Single-Byte Opcodes")
 case 0xe8: {  // call disp32 relative to next EIP
-  int32_t offset = imm32();
+  int32_t offset = next32();
   trace(90, "run") << "call imm32 0x" << HEXWORD << offset << end();
 //?   cerr << "push: EIP: " << EIP << " => " << Reg[ESP].u << '\n';
   push(EIP);