about summary refs log tree commit diff stats
path: root/subx/011run.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-27 10:15:03 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-27 10:15:03 -0700
commit3f4bbe9e5fd1389720c7adb5577edf2dc01d51e9 (patch)
tree61d80e20e59be711010dd4a1665afedc8d9bb93a /subx/011run.cc
parent667d21177b9d8fe3652710b818d13940b23511d7 (diff)
downloadmu-3f4bbe9e5fd1389720c7adb5577edf2dc01d51e9.tar.gz
4434
Key core data structures by hex bytes in text rather than opcode
numbers. Saves us round trips of having to parse and reparse strings,
and also allows us to more easily ignore unexpected non-hex words in
each transform. We'll use this ability next when we start inserting
labels.
Diffstat (limited to 'subx/011run.cc')
-rw-r--r--subx/011run.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/011run.cc b/subx/011run.cc
index 906a8305..2de87a72 100644
--- a/subx/011run.cc
+++ b/subx/011run.cc
@@ -231,7 +231,7 @@ uint8_t hex_byte(const string& s) {
 //:: run
 
 :(before "End Initialize Op Names(name)")
-put(name, 0x05, "add imm32 to R0 (EAX)");
+put(name, "05", "add imm32 to R0 (EAX)");
 
 //: our first opcode
 :(before "End Single-Byte Opcodes")