Debugger's pc "variable" now returns a full address

This commit is contained in:
Lior Halphon 2016-07-14 23:27:48 +03:00
parent 909f3ba75e
commit c3a831db7d
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ value_t debugger_evaluate(GB_gameboy_t *gb, const char *string,
case 'd': if (string[1] == 'e') return VALUE_16(gb->registers[GB_REGISTER_DE]);
case 'h': if (string[1] == 'l') return VALUE_16(gb->registers[GB_REGISTER_HL]);
case 's': if (string[1] == 'p') return VALUE_16(gb->registers[GB_REGISTER_SP]);
case 'p': if (string[1] == 'c') return VALUE_16(gb->pc);
case 'p': if (string[1] == 'c') return (value_t){true, bank_for_addr(gb, gb->pc), gb->pc};
}
}
else if (length == 3) {