about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-24 11:54:54 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-24 11:54:58 -0700
commit1faa9790960043f5fbad482cd4b2cf4a6c50efd8 (patch)
tree8bdfd0b5024a855a8d772f85a66a800037decd9d /subx
parent4ac15a8a0e1d9254f919ddc2ce48412944ad82b1 (diff)
downloadmu-1faa9790960043f5fbad482cd4b2cf4a6c50efd8.tar.gz
4394
Diffstat (limited to 'subx')
-rw-r--r--subx/022check_instruction.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/022check_instruction.cc b/subx/022check_instruction.cc
index a8c044c3..0544b168 100644
--- a/subx/022check_instruction.cc
+++ b/subx/022check_instruction.cc
@@ -47,7 +47,7 @@ void check_operands(const line& inst) {
     return;
   }
   if (!contains_key(name, op)) {
-    raise << "unknown opcode '" << std::hex << op << "'\n" << end();
+    raise << "unknown opcode '" << HEXBYTE << NUM(op) << "'\n" << end();
     return;
   }
   check_operands(op, inst);
@@ -445,7 +445,7 @@ void check_operands_0f(const line& inst) {
   }
   uint8_t op = hex_byte(inst.words.at(1).data);
   if (!contains_key(name_0f, op)) {
-    raise << "unknown 2-byte opcode '0f " << std::hex << op << "'\n" << end();
+    raise << "unknown 2-byte opcode '0f " << HEXBYTE << NUM(op) << "'\n" << end();
     return;
   }
   check_operands_0f(op, inst);