From 683d2d10afcee0d728794cc179f640e8a777b3c1 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 31 Oct 2022 19:26:15 -0700 Subject: Unify TT_INPUT_INT_ENABLE and TT_OUTPUT_INT_ENABLE --- io/model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io') diff --git a/io/model.cpp b/io/model.cpp index e9caba0..3bea59e 100644 --- a/io/model.cpp +++ b/io/model.cpp @@ -24,11 +24,11 @@ bool iomodel::interact(std::array &ctlregs) { } bool interrupt = false; - if (ctlregs[TT_INPUT_INT_ENABLE]) { + if (ctlregs[TT_INT_ENABLE]) { if (ctlregs[TT_BITS] & TTI_FLAG) interrupt = true; } - if (ctlregs[TT_OUTPUT_INT_ENABLE]) { + if (ctlregs[TT_INT_ENABLE]) { if ((ctlregs[TT_BITS] & (TTO_FLAG|TTO_FLAG_OLD)) == TTO_FLAG) interrupt = true; } -- cgit v1.2.3