about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-11 22:28:39 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-11 22:28:39 -0700
commit2903607ab458137fb0775184d818920f3c07e331 (patch)
tree186866211c1dd8c6f674cc97ee387dcee6171023 /subx
parentc762564bd754884e847922c99172076fde4d646e (diff)
downloadmu-2903607ab458137fb0775184d818920f3c07e331.tar.gz
4540
Diffstat (limited to 'subx')
-rw-r--r--subx/015immediate_addressing.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/015immediate_addressing.cc b/subx/015immediate_addressing.cc
index c6cf843b..2ca19aa4 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", "subtract imm32 from R0 (EAX)");
+put(name, "3d", "compare imm32 with R0 (EAX)");
 
 :(scenario compare_imm32_with_eax_greater)
 % Reg[EAX].i = 0x0d0c0b0a;
@@ -294,7 +294,7 @@ put(name, "3d", "subtract imm32 from R0 (EAX)");
 +run: SF=0; ZF=0; OF=0
 
 :(before "End Single-Byte Opcodes")
-case 0x3d: {  // subtract imm32 from EAX
+case 0x3d: {  // compare EAX with imm32
   int32_t arg1 = Reg[EAX].i;
   int32_t arg2 = next32();
   trace(90, "run") << "compare EAX and imm32 0x" << HEXWORD << arg2 << end();