about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/013direct_addressing.cc2
-rw-r--r--subx/014indirect_addressing.cc2
-rw-r--r--subx/015immediate_addressing.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc
index 38224088..2fb5c361 100644
--- a/subx/013direct_addressing.cc
+++ b/subx/013direct_addressing.cc
@@ -262,7 +262,7 @@ case 2: {  // not r/m32
 //:: compare (cmp)
 
 :(before "End Initialize Op Names(name)")
-put(name, "39", "set SF if rm32 < r32");
+put(name, "39", "compare: set SF if rm32 < r32");
 
 :(scenario compare_r32_with_r32_greater)
 % Reg[EAX].i = 0x0a0b0c0d;
diff --git a/subx/014indirect_addressing.cc b/subx/014indirect_addressing.cc
index bb102dfd..3a7bd3b6 100644
--- a/subx/014indirect_addressing.cc
+++ b/subx/014indirect_addressing.cc
@@ -284,7 +284,7 @@ ff 00 0f 0f  # 0x0f0f00ff
 //:
 
 :(before "End Initialize Op Names(name)")
-put(name, "3b", "set SF if rm32 > r32");
+put(name, "3b", "compare: set SF if r32 < rm32");
 
 :(scenario compare_r32_with_mem_at_r32_greater)
 % Reg[EAX].i = 0x60;
diff --git a/subx/015immediate_addressing.cc b/subx/015immediate_addressing.cc
index 2ca19aa4..1444e173 100644
--- a/subx/015immediate_addressing.cc
+++ b/subx/015immediate_addressing.cc
@@ -283,7 +283,7 @@ case 6: {
 //:: compare (cmp)
 
 :(before "End Initialize Op Names(name)")
-put(name, "3d", "compare imm32 with R0 (EAX)");
+put(name, "3d", "compare: set SF if R0 < imm32");
 
 :(scenario compare_imm32_with_eax_greater)
 % Reg[EAX].i = 0x0d0c0b0a;