mirror of
https://github.com/jscrane/r65emu.git
synced 2024-11-15 14:08:25 +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) {
|
char *r6502::status(char *buf, size_t n, bool hdr) {
|
||||||
flags();
|
flags();
|
||||||
snprintf(buf, n,
|
snprintf(buf, n,
|
||||||
"%s%02x %02x %02x %02x %d%d%d%d%d%d%d%d %04x",
|
"%s%02x %02x %02x %02x %d%d%d%d%d%d%d%d %04x %02x",
|
||||||
hdr? "aa xx yy sp nv_bdizc _pc_\r\n": "",
|
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,
|
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;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user