From ab783ea4c9b0a424dd4e5aefc874a734dbaee7d5 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 28 Dec 2014 12:55:16 -0500 Subject: [PATCH] inline macsbug names for JSR address, adjust macsbug name printing. --- bin/debugger.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/debugger.cpp b/bin/debugger.cpp index baad9e0..128418b 100644 --- a/bin/debugger.cpp +++ b/bin/debugger.cpp @@ -185,7 +185,7 @@ namespace { { s.push_back(Debug::ReadByte(pc++)); } - printf("%s\n", s.c_str()); + printf(" %s\n\n", s.c_str()); // word-align pc = pc + 1 & ~0x01; @@ -253,6 +253,11 @@ namespace { address = pc + 2 + offset; break; } + case 0x4EB9: // jsr address + { + address = Debug::ReadLong(pc + 2); + break; + } case 0x4EF9: // jmp address { address = Debug::ReadLong(pc + 2);