1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-27 00:30:26 +00:00

Added a short circuit to set_interrupt_line, mostly to make breakpoints slightly more convenient to place.

This commit is contained in:
Thomas Harte 2017-06-05 09:37:19 -04:00
parent 7e3a46c33e
commit e940e02126

View File

@ -1732,6 +1732,8 @@ template <class T> class Processor {
Sets the logical value of the interrupt line.
*/
void set_interrupt_line(bool value) {
if(irq_line_ == value) return;
// IRQ requests are level triggered and masked.
irq_line_ = value;
if(irq_line_ && iff1_) {