all repos — mgba @ c4175846d88345d203153b64e8eb57559b9301ab

mGBA Game Boy Advance Emulator

Debugger: Print segment numbers
Vicki Pfau vi@endrift.com
Mon, 22 May 2017 22:07:59 -0700
commit

c4175846d88345d203153b64e8eb57559b9301ab

parent

dae68c2182a8daa5c1770ade38726ed4b7a37193

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/debugger/cli-debugger.c

@@ -137,6 +137,10 @@ }

static void _print(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { for (; dv; dv = dv->next) { + if (dv->segmentValue >= 0) { + debugger->backend->printf(debugger->backend, " $%02X:%04X", dv->segmentValue, dv->intValue); + continue; + } debugger->backend->printf(debugger->backend, " %u", dv->intValue); } debugger->backend->printf(debugger->backend, "\n");