about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-10 10:32:17 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-10 10:32:17 -0700
commit3f097f3fd6f91830f007d6ee9db5f6be9d5e191c (patch)
tree2685fc7dfed6a2ec94433e36f4f37bec680afe64
parent1e4f110f075cd50fbf394c31bca70cb73d52a728 (diff)
downloadmu-3f097f3fd6f91830f007d6ee9db5f6be9d5e191c.tar.gz
finally tracked down binary character in traces
This was why grep required the `-a` argument in vimrc.vim.
-rw-r--r--subx/021byte_addressing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/021byte_addressing.cc b/subx/021byte_addressing.cc
index 6510e2a6..a0b36776 100644
--- a/subx/021byte_addressing.cc
+++ b/subx/021byte_addressing.cc
@@ -162,7 +162,7 @@ case 0xc6: {  // copy imm8 to r/m8
   const uint8_t modrm = next();
   const uint8_t src = next();
   trace(Callstack_depth+1, "run") << "copy imm8 to r8/m8-at-r32" << end();
-  trace(Callstack_depth+1, "run") << "imm8 is 0x" << HEXWORD << src << end();
+  trace(Callstack_depth+1, "run") << "imm8 is 0x" << HEXWORD << NUM(src) << end();
   const uint8_t subop = (modrm>>3)&0x7;  // middle 3 'reg opcode' bits
   if (subop != 0) {
     cerr << "unrecognized subop for opcode c6: " << NUM(subop) << " (only 0/copy currently implemented)\n";