mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-25 22:31:51 +00:00
display op in status
This commit is contained in:
parent
5355f623bd
commit
21708c1c01
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user