Debugger: Make I/O register names be addresses instead of values

This commit is contained in:
Jeffrey Pfau 2015-02-13 00:49:13 -08:00
parent 1f6732b9bb
commit 8ca2e3adbd
2 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ Misc:
- 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:

View File

@ -78,12 +78,12 @@ static bool _GBACLIDebuggerCustom(struct CLIDebuggerSystem* debugger) {
}
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;