EtchedPixels / EmulatorKit

A collection of emulators mostly of retrobrew style systems
GNU General Public License v3.0
142 stars 41 forks source link

Z80: exit simulator on halt with interrupts disabled. #32

Closed brouhaha closed 2 years ago

brouhaha commented 2 years ago

For the Z80-based RC2014 only, end simulation if a halt instruction is executed with interrupts disabled. The RC2014 doesn't currently support non-maskable interrupts; if that happens in the future, this might need to be changed to a different mechanism, as EtchedPixels described in pull request https://github.com/EtchedPixels/RC2014/pull/31.