all repos — mgba @ 8ca2e3adbdf895fbac7fc3578fb703dfe5b6365c

mGBA Game Boy Advance Emulator

Debugger: Make I/O register names be addresses instead of values
Jeffrey Pfau jeffrey@endrift.com
Fri, 13 Feb 2015 00:49:13 -0800
commit

8ca2e3adbdf895fbac7fc3578fb703dfe5b6365c

parent

1f6732b9bb8c1916f3d13f0df9affd5ab1a935e8

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -52,6 +52,7 @@ - GBA: Refactor gba-sensors and gba-gpio into gba-hardware

- GBA: Refactor gba directory, dropping gba- prefix and making supervisor directory - Debugger: Add support for soft breakpoints - Util: Use proper locale for reading and writing float values + - Debugger: Make I/O register names be addresses instead of values 0.1.1: (2015-01-24) Bugfixes:
M src/gba/supervisor/cli.csrc/gba/supervisor/cli.c

@@ -78,12 +78,12 @@ return false;

} static uint32_t _GBACLIDebuggerLookupIdentifier(struct CLIDebuggerSystem* debugger, const char* name, struct CLIDebugVector* dv) { - struct GBACLIDebugger* gbaDebugger = (struct GBACLIDebugger*) debugger; + UNUSED(debugger); int i; for (i = 0; i < REG_MAX; i += 2) { const char* reg = GBAIORegisterNames[i >> 1]; if (reg && strcasecmp(reg, name) == 0) { - return GBALoad16(gbaDebugger->context->gba->cpu, BASE_IO | i, 0); + return BASE_IO | i; } } dv->type = CLIDV_ERROR_TYPE;