about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-30 11:41:00 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-30 11:41:00 -0700
commitdc1ef1d5a89ca0550fa4e13d776ab6f8cc1e225e (patch)
tree8db57fa161ad5381e126b925c000ff32d535d1a3
parent875b6ba897cddb1a70c99327b50921de802d3f39 (diff)
downloadmu-dc1ef1d5a89ca0550fa4e13d776ab6f8cc1e225e.tar.gz
4458
Fix trace for the bugfix of comment 4456.
-rw-r--r--subx/012direct_addressing.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/012direct_addressing.cc b/subx/012direct_addressing.cc
index e4f7f8a9..54cd096f 100644
--- a/subx/012direct_addressing.cc
+++ b/subx/012direct_addressing.cc
@@ -90,7 +90,7 @@ case 0x29: {  // subtract r32 from r/m32
 //:: multiply
 
 :(before "End Initialize Op Names(name)")
-put(name_0f, "af", "multiply r32 into rm32");
+put(name_0f, "af", "multiply rm32 into r32");
 
 :(scenario multiply_r32_into_r32)
 % Reg[EAX].i = 4;
@@ -99,7 +99,7 @@ put(name_0f, "af", "multiply r32 into rm32");
 # op      ModR/M  SIB   displacement  immediate
   0f af   d8                                      # subtract EBX into EAX
 # ModR/M in binary: 11 (direct mode) 011 (src EBX) 000 (dest EAX)
-+run: multiply EBX into r/m32
++run: multiply r/m32 into EBX
 +run: r/m32 is EAX
 +run: storing 0x00000008
 
@@ -107,7 +107,7 @@ put(name_0f, "af", "multiply r32 into rm32");
 case 0xaf: {  // multiply r32 into r/m32
   uint8_t modrm = next();
   uint8_t arg2 = (modrm>>3)&0x7;
-  trace(90, "run") << "multiply " << rname(arg2) << " into r/m32" << end();
+  trace(90, "run") << "multiply r/m32 into " << rname(arg2) << end();
   int32_t* arg1 = effective_address(modrm);
   BINARY_ARITHMETIC_OP(*, Reg[arg2].i, *arg1);
   break;