... for the C implementations of this code (i.e. Hatari and Previous),
where STOPTRY has to be used before returning from within a TRY-CATCH block.
regs.instruction_cnt++;
if (regs.spcflags) {
- if (do_specialties (cpu_cycles))
+ if (do_specialties(cpu_cycles)) {
+ STOPTRY;
return;
+ }
}
}
} CATCH (prb) {
cpu_cycles = adjust_cycles (cpu_cycles);
regs.instruction_cnt++;
if (regs.spcflags) {
- if (do_specialties (cpu_cycles))
+ if (do_specialties(cpu_cycles)) {
+ STOPTRY;
return;
+ }
}
} else {
regs.instruction_cnt++;
regs.ipl = regs.ipl_pin;
if (regs.spcflags || time_for_interrupt ()) {
- if (do_specialties (0))
+ if (do_specialties(0)) {
+ STOPTRY;
return;
+ }
}
}