about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--013direct_addressing.cc12
-rw-r--r--014indirect_addressing.cc12
2 files changed, 12 insertions, 12 deletions
diff --git a/013direct_addressing.cc b/013direct_addressing.cc
index 2450e54c..8dc2bb77 100644
--- a/013direct_addressing.cc
+++ b/013direct_addressing.cc
@@ -847,7 +847,7 @@ void test_compare_r32_with_r32_greater() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX with EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
@@ -884,7 +884,7 @@ void test_compare_r32_with_r32_lesser_unsigned_and_signed() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX with EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
@@ -900,7 +900,7 @@ void test_compare_r32_with_r32_lesser_unsigned_and_signed_due_to_overflow() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX with EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
@@ -916,7 +916,7 @@ void test_compare_r32_with_r32_lesser_signed() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX with EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
@@ -932,7 +932,7 @@ void test_compare_r32_with_r32_lesser_unsigned() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX with EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
@@ -948,7 +948,7 @@ void test_compare_r32_with_r32_equal() {
       "== code 0x1\n"  // code segment
       // op     ModR/M  SIB   displacement  immediate
       "  39     d8                                    \n"  // compare EAX and EBX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (rhs EBX) 000 (lhs EAX)
   );
   CHECK_TRACE_CONTENTS(
       "run: compare r/m32 with EBX\n"
diff --git a/014indirect_addressing.cc b/014indirect_addressing.cc
index 04b65215..d06a574d 100644
--- a/014indirect_addressing.cc
+++ b/014indirect_addressing.cc
@@ -545,7 +545,7 @@ void test_compare_r32_with_mem_at_rm32_greater() {
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 00 (indirect mode) 011 (src EAX) 000 (dest EAX)
+      // ModR/M in binary: 00 (indirect mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "07 0c 0b 0a\n"  // 0x0a0b0c07
   );
@@ -583,7 +583,7 @@ void test_compare_r32_with_mem_at_rm32_lesser_unsigned_and_signed() {
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "0d 0c 0b 0a\n"  // 0x0a0b0c0d
   );
@@ -602,7 +602,7 @@ void test_compare_r32_with_mem_at_rm32_lesser_unsigned_and_signed_due_to_overflo
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "00 00 00 80\n"  // smallest negative signed integer
   );
@@ -621,7 +621,7 @@ void test_compare_r32_with_mem_at_rm32_lesser_signed() {
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "01 00 00 00\n"  // 1
   );
@@ -640,7 +640,7 @@ void test_compare_r32_with_mem_at_rm32_lesser_unsigned() {
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
+      // ModR/M in binary: 11 (direct mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "ff ff ff ff\n"  // -1
   );
@@ -659,7 +659,7 @@ void test_compare_r32_with_mem_at_rm32_equal() {
       "== code 0x1\n"
       // op     ModR/M  SIB   displacement  immediate
       "  3b     18                                    \n"  // compare EBX with *EAX
-      // ModR/M in binary: 00 (indirect mode) 011 (src EAX) 000 (dest EAX)
+      // ModR/M in binary: 00 (indirect mode) 011 (lhs EBX) 000 (rhs EAX)
       "== data 0x2000\n"
       "0d 0c 0b 0a\n"  // 0x0a0b0c0d
   );