From 05cedfb1f5010fdf2761318c96c4cccb41c9acc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Fri, 27 Jan 2017 22:28:09 +0100 Subject: [PATCH] Also print program counter when dumping regs. --- src/rk65c02.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rk65c02.c b/src/rk65c02.c index 1c1dba6..9b91632 100644 --- a/src/rk65c02.c +++ b/src/rk65c02.c @@ -86,7 +86,8 @@ rk65c02_step(rk65c02emu_t *e, uint16_t steps) { void rk65c02_dump_regs(rk65c02emu_t *e) { - printf("A: %X X: %X Y: %X SP: %X P: ", e->regs.A, e->regs.X, e->regs.Y, e->regs.SP); + printf("A: %X X: %X Y: %X PC: %X SP: %X P: ", + e->regs.A, e->regs.X, e->regs.Y, e->regs.PC, e->regs.SP); if (e->regs.P & P_NEGATIVE) printf("N");