Fix TRAP restore PC, but better

This commit is contained in:
Guy Perfect 2024-12-29 09:52:07 -06:00
parent eef255b507
commit 06849b54ba
1 changed files with 2 additions and 1 deletions

View File

@ -1636,7 +1636,8 @@ static void cpuSUBF_S(VB *sim) {
/* TRAP */
static void cpuTRAP(VB *sim) {
cpuAdvance(sim, cpuClocks(15));
sim->cpu.clocks += cpuClocks(15);
sim->cpu.pc += 2;
cpuThrow(sim, 0xFFA0 + cpuGetImm5U(sim));
}