Fix TRAP restore PC, but better

This commit is contained in:
2024-12-29 09:52:07 -06:00
parent eef255b507
commit 06849b54ba
+2 -1
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));
}