mirror of
https://github.com/st3fan/ewm.git
synced 2024-12-29 07:29:46 +00:00
Print PC when unexpected io is read/written
This commit is contained in:
parent
1daa5c86da
commit
c3d33dba2c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user