diff options
Diffstat (limited to 'subx')
-rw-r--r-- | subx/012indirect_addressing.cc | 4 | ||||
-rw-r--r-- | subx/013immediate_addressing.cc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/subx/012indirect_addressing.cc b/subx/012indirect_addressing.cc index ee56b2e1..f9aafda5 100644 --- a/subx/012indirect_addressing.cc +++ b/subx/012indirect_addressing.cc @@ -48,7 +48,7 @@ case 0x03: { // add r/m32 to r32 //:: subtract -:(scenario sub_r32_from_mem_at_r32) +:(scenario subtract_r32_from_mem_at_r32) % Reg[0].i = 0x60; % Mem.at(0x60) = 10; % Reg[3].i = 1; @@ -60,7 +60,7 @@ case 0x03: { // add r/m32 to r32 //: -:(scenario sub_mem_at_r32_from_r32) +:(scenario subtract_mem_at_r32_from_r32) % Reg[0].i = 0x60; % Mem.at(0x60) = 1; % Reg[3].i = 10; diff --git a/subx/013immediate_addressing.cc b/subx/013immediate_addressing.cc index 25a362c2..c995bd90 100644 --- a/subx/013immediate_addressing.cc +++ b/subx/013immediate_addressing.cc @@ -43,7 +43,7 @@ case 0x81: { // combine imm32 with r/m32 //:: subtract -:(scenario sub_imm32_from_eax) +:(scenario subtract_imm32_from_eax) % Reg[EAX].i = 0x0d0c0baa; # op ModR/M SIB displacement immediate 2d 0a 0b 0c 0d # subtract 0x0d0c0b0a from EAX (reg 0) @@ -60,7 +60,7 @@ case 0x2d: { // subtract imm32 from EAX //: -:(scenario sub_imm32_from_mem_at_r32) +:(scenario subtract_imm32_from_mem_at_r32) % Reg[3].i = 0x60; % Mem.at(0x60) = 10; # op ModRM SIB displacement immediate @@ -72,7 +72,7 @@ case 0x2d: { // subtract imm32 from EAX //: -:(scenario sub_imm32_from_r32) +:(scenario subtract_imm32_from_r32) % Reg[3].i = 10; # op ModRM SIB displacement immediate 81 eb 01 00 00 00 # subtract 1 from EBX (reg 3) |