6502: correctly display MSB of SP (fixes #2)

Change-Id: I0274cae032be380a5326792a7513de7b4264c5e0
This commit is contained in:
David Banks 2019-11-03 13:28:35 +00:00
parent 973047db77
commit ac6e9c1f87

View File

@ -12,11 +12,11 @@ char statusString[8] = "NV-BDIZC";
void doCmdRegs(char *params) {
int i;
unsigned int p = hwRead8(OFFSET_REG_P);
log0("6502 Registers:\n A=%02X X=%02X Y=%02X SP=%04X PC=%04X\n",
log0("6502 Registers:\n A=%02X X=%02X Y=%02X SP=01%02X PC=%04X\n",
hwRead8(OFFSET_REG_A),
hwRead8(OFFSET_REG_X),
hwRead8(OFFSET_REG_Y),
hwRead16(OFFSET_REG_SP),
hwRead8(OFFSET_REG_SP),
hwRead16(OFFSET_REG_PC));
char *sp = statusString;
log0(" Status: ");