From 3f4bbe9e5fd1389720c7adb5577edf2dc01d51e9 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 27 Jul 2018 10:15:03 -0700 Subject: 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. --- subx/018functions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subx/018functions.cc') 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; -- cgit 1.4.1-2-gfad0