Print PC when unexpected io is read/written

This commit is contained in:
Stefan Arentz 2016-12-21 21:50:02 -05:00
parent 1daa5c86da
commit c3d33dba2c

View File

@ -171,7 +171,7 @@ static uint8_t ewm_two_iom_read(struct cpu_t *cpu, struct mem_t *mem, uint16_t a
}
default:
printf("[A2P] Unexpected read at $%.4X\n", addr);
printf("[A2P] Unexpected read at $%.4X pc is $%.4X\n", addr, cpu->state.pc);
break;
}
return 0;
@ -244,7 +244,7 @@ static void ewm_two_iom_write(struct cpu_t *cpu, struct mem_t *mem, uint16_t add
break;
default:
printf("[A2P] Unexpected write at $%.4X\n", addr);
printf("[A2P] Unexpected write at $%.4X pc is $%.4X\n", addr, cpu->state.pc);
break;
}
}