mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-12 10:30:23 +00:00
Stop on unimplemented instruction.
This commit is contained in:
parent
2adf864f4f
commit
51de051e19
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user