1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-03 14:49:33 +00:00

display op in status

This commit is contained in:
Stephen Crane 2018-09-12 10:38:16 +01:00
parent 5355f623bd
commit 21708c1c01

View File

@ -27,10 +27,10 @@ uint8_t r6502::flags() {
char *r6502::status(char *buf, size_t n, bool hdr) {
flags();
snprintf(buf, n,
"%s%02x %02x %02x %02x %d%d%d%d%d%d%d%d %04x",
hdr? "aa xx yy sp nv_bdizc _pc_\r\n": "",
"%s%02x %02x %02x %02x %d%d%d%d%d%d%d%d %04x %02x",
hdr? "aa xx yy sp nv_bdizc _pc_ op\r\n": "",
A, X, Y, S, P.bits.N, P.bits.V, P.bits._, P.bits.B,
P.bits.D, P.bits.I, P.bits.Z, P.bits.C, PC);
P.bits.D, P.bits.I, P.bits.Z, P.bits.C, PC, (uint8_t)_mem[PC]);
return buf;
}