mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-12-22 01:30:18 +00:00
6502: correctly display MSB of SP (fixes #2)
Change-Id: I0274cae032be380a5326792a7513de7b4264c5e0
This commit is contained in:
parent
973047db77
commit
ac6e9c1f87
@ -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: ");
|
||||
|
Loading…
Reference in New Issue
Block a user