mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-28 22:29:36 +00:00
Added a short circuit to set_interrupt_line, mostly to make breakpoints slightly more convenient to place.
This commit is contained in:
parent
7e3a46c33e
commit
e940e02126
@ -1732,6 +1732,8 @@ template <class T> class Processor {
|
|||||||
Sets the logical value of the interrupt line.
|
Sets the logical value of the interrupt line.
|
||||||
*/
|
*/
|
||||||
void set_interrupt_line(bool value) {
|
void set_interrupt_line(bool value) {
|
||||||
|
if(irq_line_ == value) return;
|
||||||
|
|
||||||
// IRQ requests are level triggered and masked.
|
// IRQ requests are level triggered and masked.
|
||||||
irq_line_ = value;
|
irq_line_ = value;
|
||||||
if(irq_line_ && iff1_) {
|
if(irq_line_ && iff1_) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user