1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Print value of PC register when unimplemented opcode encountered.

This commit is contained in:
Radosław Kujawa 2017-01-21 09:13:43 +01:00
parent 1820418c62
commit 5ca671aecb

View File

@ -35,7 +35,8 @@ rk65c02_start(rk65c02emu_t *e) {
if (id.emul != NULL)
id.emul(e, &i);
else {
printf("unimplemented opcode %X\n", i.opcode);
printf("unimplemented opcode %X @ %X\n", i.opcode,
e->regs.PC);
e->state = STOPPED;
}