summaryrefslogtreecommitdiff
path: root/io/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'io/model.cpp')
-rw-r--r--io/model.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::uint_fast32_t, NUM_CTLREGS> &ctlregs) {
24 } 24 }
25 25
26 bool interrupt = false; 26 bool interrupt = false;
27 if (ctlregs[TT_INPUT_INT_ENABLE]) { 27 if (ctlregs[TT_INT_ENABLE]) {
28 if (ctlregs[TT_BITS] & TTI_FLAG) 28 if (ctlregs[TT_BITS] & TTI_FLAG)
29 interrupt = true; 29 interrupt = true;
30 } 30 }
31 if (ctlregs[TT_OUTPUT_INT_ENABLE]) { 31 if (ctlregs[TT_INT_ENABLE]) {
32 if ((ctlregs[TT_BITS] & (TTO_FLAG|TTO_FLAG_OLD)) == TTO_FLAG) 32 if ((ctlregs[TT_BITS] & (TTO_FLAG|TTO_FLAG_OLD)) == TTO_FLAG)
33 interrupt = true; 33 interrupt = true;
34 } 34 }