mirror of
https://github.com/rkujawa/rk65c02.git
synced 2025-08-07 11:26:57 +00:00
Stop on unimplemented instruction.
This commit is contained in:
@@ -34,8 +34,10 @@ rk65c02_start(rk65c02emu_t *e) {
|
|||||||
|
|
||||||
if (id.emul != NULL)
|
if (id.emul != NULL)
|
||||||
id.emul(e, &i);
|
id.emul(e, &i);
|
||||||
else
|
else {
|
||||||
printf("unimplemented opcode %X\n", i.opcode);
|
printf("unimplemented opcode %X\n", i.opcode);
|
||||||
|
e->state = STOPPED;
|
||||||
|
}
|
||||||
|
|
||||||
e->regs.PC += id.size;
|
e->regs.PC += id.size;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user