1
0
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:
Radosław Kujawa 2017-01-20 23:18:00 +01:00
parent 2adf864f4f
commit 51de051e19

View File

@ -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;