diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-22 00:59:46 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-22 00:59:46 -0700 |
commit | c82d149b3f92cccdbaa054e7ee4ecb814b523fec (patch) | |
tree | 2bda68504f9435d57a341f0d614ab526b7d00147 /016index_addressing.cc | |
parent | d409be9b29b4bbfdf10fa26620fa6abbe45a87da (diff) | |
download | mu-c82d149b3f92cccdbaa054e7ee4ecb814b523fec.tar.gz |
7089
Diffstat (limited to '016index_addressing.cc')
-rw-r--r-- | 016index_addressing.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/016index_addressing.cc b/016index_addressing.cc index 454051a2..f6c6f2aa 100644 --- a/016index_addressing.cc +++ b/016index_addressing.cc @@ -11,7 +11,7 @@ void test_add_r32_to_mem_at_rm32_with_sib() { // ModR/M in binary: 00 (indirect mode) 011 (src EBX) 100 (dest in SIB) // SIB in binary: 00 (scale 1) 100 (no index) 000 (base EAX) "== data 0x2000\n" - "01 00 00 00\n" // 0x00000001 + "01 00 00 00\n" // 1 ); CHECK_TRACE_CONTENTS( "run: add EBX to r/m32\n" @@ -64,7 +64,7 @@ void test_add_r32_to_mem_at_base_r32_index_r32() { // ModR/M in binary: 00 (indirect mode) 011 (src EBX) 100 (dest in SIB) // SIB in binary: 00 (scale 1) 001 (index ECX) 000 (base EAX) "== data 0x2000\n" - "01 00 00 00\n" // 0x00000001 + "01 00 00 00\n" // 1 ); CHECK_TRACE_CONTENTS( "run: add EBX to r/m32\n" @@ -84,7 +84,7 @@ void test_add_r32_to_mem_at_displacement_using_sib() { // ModR/M in binary: 00 (indirect mode) 011 (src EBX) 100 (dest in SIB) // SIB in binary: 00 (scale 1) 100 (no index) 101 (not EBP but disp32) "== data 0x2000\n" - "01 00 00 00\n" // 0x00000001 + "01 00 00 00\n" // 1 ); CHECK_TRACE_CONTENTS( "run: add EBX to r/m32\n" @@ -108,7 +108,7 @@ void test_add_r32_to_mem_at_base_r32_index_r32_plus_disp8() { // ModR/M in binary: 01 (indirect+disp8 mode) 011 (src EBX) 100 (dest in SIB) // SIB in binary: 00 (scale 1) 001 (index ECX) 000 (base EAX) "== data 0x2000\n" - "01 00 00 00\n" // 0x00000001 + "01 00 00 00\n" // 1 ); CHECK_TRACE_CONTENTS( "run: add EBX to r/m32\n" @@ -138,7 +138,7 @@ void test_add_r32_to_mem_at_base_r32_index_r32_plus_disp32() { // ModR/M in binary: 10 (indirect+disp32 mode) 011 (src EBX) 100 (dest in SIB) // SIB in binary: 00 (scale 1) 001 (index ECX) 000 (base EAX) "== data 0x2000\n" - "01 00 00 00\n" // 0x00000001 + "01 00 00 00\n" // 1 ); CHECK_TRACE_CONTENTS( "run: add EBX to r/m32\n" |