mirror of https://github.com/mgba-emu/mgba.git
Debugger: Make I/O register names be addresses instead of values
This commit is contained in:
parent
1f6732b9bb
commit
8ca2e3adbd
1
CHANGES
1
CHANGES
|
@ -52,6 +52,7 @@ Misc:
|
||||||
- GBA: Refactor gba directory, dropping gba- prefix and making supervisor directory
|
- GBA: Refactor gba directory, dropping gba- prefix and making supervisor directory
|
||||||
- Debugger: Add support for soft breakpoints
|
- Debugger: Add support for soft breakpoints
|
||||||
- Util: Use proper locale for reading and writing float values
|
- 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)
|
0.1.1: (2015-01-24)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -78,12 +78,12 @@ static bool _GBACLIDebuggerCustom(struct CLIDebuggerSystem* debugger) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t _GBACLIDebuggerLookupIdentifier(struct CLIDebuggerSystem* debugger, const char* name, struct CLIDebugVector* dv) {
|
static uint32_t _GBACLIDebuggerLookupIdentifier(struct CLIDebuggerSystem* debugger, const char* name, struct CLIDebugVector* dv) {
|
||||||
struct GBACLIDebugger* gbaDebugger = (struct GBACLIDebugger*) debugger;
|
UNUSED(debugger);
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < REG_MAX; i += 2) {
|
for (i = 0; i < REG_MAX; i += 2) {
|
||||||
const char* reg = GBAIORegisterNames[i >> 1];
|
const char* reg = GBAIORegisterNames[i >> 1];
|
||||||
if (reg && strcasecmp(reg, name) == 0) {
|
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;
|
dv->type = CLIDV_ERROR_TYPE;
|
||||||
|
|
Loading…
Reference in New Issue