From 5ca671aecb18e0e2bfa9caba918327652afdb856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Sat, 21 Jan 2017 09:13:43 +0100 Subject: [PATCH] Print value of PC register when unimplemented opcode encountered. --- src/rk65c02.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rk65c02.c b/src/rk65c02.c index 5a7b041..c59f942 100644 --- a/src/rk65c02.c +++ b/src/rk65c02.c @@ -35,7 +35,8 @@ rk65c02_start(rk65c02emu_t *e) { if (id.emul != NULL) id.emul(e, &i); else { - printf("unimplemented opcode %X\n", i.opcode); + printf("unimplemented opcode %X @ %X\n", i.opcode, + e->regs.PC); e->state = STOPPED; }