diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-05-08 23:10:14 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-05-08 23:10:14 -0700 |
commit | 3ae1fd0048cb0745f570df0263a828a30315a00b (patch) | |
tree | 21ab4155a8bde6eba4e53a6699e4a31867b81396 /subx | |
parent | 5ed05c40bec0cb566fdb8012e134ed61ee93209f (diff) | |
download | mu-3ae1fd0048cb0745f570df0263a828a30315a00b.tar.gz |
5147
Diffstat (limited to 'subx')
-rw-r--r-- | subx/039debug.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/039debug.cc b/subx/039debug.cc index 26bb5f7a..8aa40558 100644 --- a/subx/039debug.cc +++ b/subx/039debug.cc @@ -46,14 +46,14 @@ else :(code) string debug_info(uint32_t inst_address) { - uint8_t op = read_mem_u8(EIP); + uint8_t op = read_mem_u8(inst_address); if (op != 0xe8) { ostringstream out; out << HEXBYTE << NUM(op); return out.str(); } - int32_t offset = read_mem_i32(EIP+/*skip op*/1); - uint32_t next_eip = EIP+/*inst length*/5+offset; + int32_t offset = read_mem_i32(inst_address+/*skip op*/1); + uint32_t next_eip = inst_address+/*inst length*/5+offset; if (contains_key(Symbol_name, next_eip)) return "e8/call "+get(Symbol_name, next_eip); ostringstream out; |