about summary refs log tree commit diff stats
path: root/subx/013direct_addressing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/013direct_addressing.cc')
-rw-r--r--subx/013direct_addressing.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc
index 8cf033bd..8d9f0555 100644
--- a/subx/013direct_addressing.cc
+++ b/subx/013direct_addressing.cc
@@ -598,9 +598,9 @@ put_new(Name, "5e", "pop top of stack to ESI (pop)");
 put_new(Name, "5f", "pop top of stack to EDI (pop)");
 
 :(scenario pop_r32)
-% Reg[ESP].u = 0x2000;
-% Mem.push_back(vma(0x2000));  // manually allocate memory
-% write_mem_i32(0x2000, 0x0000000a);  // ..before this write
+% Reg[ESP].u = 0x02000000;
+% Mem.push_back(vma(0x02000000));  // manually allocate memory
+% write_mem_i32(0x02000000, 0x0000000a);  // ..before this write
 == 0x1  # code segment
 # op  ModR/M  SIB   displacement  immediate
   5b                                          # pop stack to EBX
@@ -608,7 +608,7 @@ put_new(Name, "5f", "pop top of stack to EDI (pop)");
 0a 00 00 00  # 0x0a
 +run: pop into EBX
 +run: popping value 0x0000000a
-+run: incrementing ESP to 0x00002004
++run: incrementing ESP to 0x02000004
 
 :(before "End Single-Byte Opcodes")
 case 0x58: