fix alignment of logging with ABS_X and ZP_X

This commit is contained in:
Vineet K 2024-06-30 15:19:52 -04:00
parent 4525490beb
commit 47b8fac273

4
cpu.c
View File

@ -1888,7 +1888,7 @@ interpret(void)
case AM_ZP_X: case AM_ZP_X:
printf(" $%02X,X", arg); printf(" $%02X,X", arg);
if (did_memwrite) printf(" = %02X\t\t\t", ret); if (did_memwrite) printf(" = %02X\t\t\t", ret);
else printf("\t\t\t\t"); else printf("\t\t\t");
break; break;
case AM_ZP_Y: case AM_ZP_Y:
printf(" $%02X,Y", arg); printf(" $%02X,Y", arg);
@ -1903,7 +1903,7 @@ interpret(void)
break; break;
case AM_ABS_X: case AM_ABS_X:
printf(" $%04X,X", arg); printf(" $%04X,X", arg);
if (did_memwrite) printf(" = %02X\t\t\t", ret); if (did_memwrite) printf(" = %02X\t\t", ret);
else printf("\t\t\t"); else printf("\t\t\t");
break; break;
case AM_ABS_Y: case AM_ABS_Y: