1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-15 20:31:36 +00:00

Add admission.

This commit is contained in:
Thomas Harte 2023-08-21 19:30:34 -04:00
parent bb84a5a474
commit a5038259bc

View File

@ -224,6 +224,9 @@ template<bool is_brk> inline void Executor::perform_interrupt(uint16_t vector) {
}
void Executor::set_interrupt_request(uint8_t &reg, uint8_t value, uint16_t vector) {
// TODO: this allows interrupts through only if fully enabled at the time they
// signal. Which isn't quite correct, albeit that it seems sufficient for the
// IIgs ADB controller.
reg |= value;
if(!interrupt_disable_ && (reg & (value >> 1))) {
perform_interrupt<false>(vector);