diff options
Diffstat (limited to 'subx')
-rw-r--r-- | subx/013immediate_addressing.cc | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/subx/013immediate_addressing.cc b/subx/013immediate_addressing.cc index 2e4b459a..14121d42 100644 --- a/subx/013immediate_addressing.cc +++ b/subx/013immediate_addressing.cc @@ -164,7 +164,12 @@ case 0x0d: { // or imm32 with EAX +run: subop or +run: storing 0xddccbbaa -//: +:(before "End Op 81 Subops") +case 1: { + trace(2, "run") << "subop or" << end(); + BINARY_BITWISE_OP(|, *arg1, arg2); + break; +} :(scenario or_imm32_with_r32) % Reg[3].i = 0xd0c0b0a0; @@ -175,13 +180,6 @@ case 0x0d: { // or imm32 with EAX +run: subop or +run: storing 0xddccbbaa -:(before "End Op 81 Subops") -case 1: { - trace(2, "run") << "subop or" << end(); - BINARY_BITWISE_OP(|, *arg1, arg2); - break; -} - //:: xor :(scenario xor_imm32_with_eax) @@ -211,7 +209,12 @@ case 0x35: { // xor imm32 with EAX +run: subop xor +run: storing 0xddccbbaa -//: +:(before "End Op 81 Subops") +case 6: { + trace(2, "run") << "subop xor" << end(); + BINARY_BITWISE_OP(^, *arg1, arg2); + break; +} :(scenario xor_imm32_with_r32) % Reg[3].i = 0xd0c0b0a0; @@ -222,13 +225,6 @@ case 0x35: { // xor imm32 with EAX +run: subop xor +run: storing 0xddccbbaa -:(before "End Op 81 Subops") -case 6: { - trace(2, "run") << "subop xor" << end(); - BINARY_BITWISE_OP(^, *arg1, arg2); - break; -} - //:: compare (cmp) :(scenario compare_imm32_with_eax_greater) |