From 51de051e1905bd5764053f442f62f6494aa61539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Fri, 20 Jan 2017 23:18:00 +0100 Subject: [PATCH] Stop on unimplemented instruction. --- src/rk65c02.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rk65c02.c b/src/rk65c02.c index 313ea7a..5a7b041 100644 --- a/src/rk65c02.c +++ b/src/rk65c02.c @@ -34,8 +34,10 @@ rk65c02_start(rk65c02emu_t *e) { if (id.emul != NULL) id.emul(e, &i); - else + else { printf("unimplemented opcode %X\n", i.opcode); + e->state = STOPPED; + } e->regs.PC += id.size;