diff options
| author | Julian Blake Kongslie | 2022-10-31 19:26:15 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-10-31 19:26:15 -0700 |
| commit | 683d2d10afcee0d728794cc179f640e8a777b3c1 (patch) | |
| tree | e23dc9a4ebc841782b6d34d12e47864020321a2d /io | |
| parent | Only use DF for addresses generated via indirection. (diff) | |
| download | biggolf-683d2d10afcee0d728794cc179f640e8a777b3c1.tar.xz | |
Unify TT_INPUT_INT_ENABLE and TT_OUTPUT_INT_ENABLE
Diffstat (limited to '')
| -rw-r--r-- | io/model.cpp | 4 |
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 | } |
