diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-18 01:53:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-18 01:53:25 -0700 |
commit | cb4be511b7bae326802420125403ba91870f30c5 (patch) | |
tree | 5d523d15cce774e9f8b0d4be1973b64608160e34 /subx | |
parent | f44c49c776b2199dd83b0de4e203a26bafa9c7ba (diff) | |
download | mu-cb4be511b7bae326802420125403ba91870f30c5.tar.gz |
4081
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) |