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;