about summary refs log tree commit diff stats
path: root/subx/018functions.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/018functions.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/018functions.cc')
-rw-r--r--subx/018functions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/018functions.cc b/subx/018functions.cc
index ac6df740..d7401716 100644
--- a/subx/018functions.cc
+++ b/subx/018functions.cc
@@ -1,7 +1,7 @@
 //:: call
 
 :(before "End Initialize Op Names(name)")
-put(name, 0xe8, "call disp32");
+put(name, "e8", "call disp32");
 
 :(scenario call_disp32)
 % Reg[ESP].u = 0x64;
@@ -67,7 +67,7 @@ a0 00 00 00  # 0xa0
 //:: ret
 
 :(before "End Initialize Op Names(name)")
-put(name, 0xc3, "return from most recent unfinished call");
+put(name, "c3", "return from most recent unfinished call");
 
 :(scenario ret)
 % Reg[ESP].u = 0x60;