From 94c6dbd2811031d2dce02b7fd9784d80160deeb9 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 1 Mar 2018 21:12:37 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20=E2=80=98call=E2=80=99=20instruction=20?= =?UTF-8?q?not=20being=20properly=20symbolicated.=20Closes=20#37?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/z80_disassembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/z80_disassembler.c b/Core/z80_disassembler.c index 08fb62f..d45cbe7 100644 --- a/Core/z80_disassembler.c +++ b/Core/z80_disassembler.c @@ -503,7 +503,7 @@ static void call_a16(GB_gameboy_t *gb, uint8_t opcode, uint16_t *pc) { (*pc)++; uint16_t addr = GB_read_memory(gb, *pc) | (GB_read_memory(gb, *pc + 1) << 8); - const char *symbol = GB_debugger_name_for_address(gb, 0xff00 + addr); + const char *symbol = GB_debugger_name_for_address(gb, addr); if (symbol) { GB_log(gb, "CALL %s ; =$%04x\n", symbol, addr); }