summaryrefslogtreecommitdiff
path: root/isa/decode.cpp
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-31 19:26:15 -0700
committerJulian Blake Kongslie2022-10-31 19:26:15 -0700
commit683d2d10afcee0d728794cc179f640e8a777b3c1 (patch)
treee23dc9a4ebc841782b6d34d12e47864020321a2d /isa/decode.cpp
parentOnly use DF for addresses generated via indirection. (diff)
downloadbiggolf-683d2d10afcee0d728794cc179f640e8a777b3c1.tar.xz
Unify TT_INPUT_INT_ENABLE and TT_OUTPUT_INT_ENABLE
Diffstat (limited to '')
-rw-r--r--isa/decode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/isa/decode.cpp b/isa/decode.cpp
index f183c1f..c11679c 100644
--- a/isa/decode.cpp
+++ b/isa/decode.cpp
@@ -153,9 +153,9 @@ instruction_context decode(unsigned int dfifb, unsigned int pc, unsigned int bit
153 }; 153 };
154 break; 154 break;
155 case 5: 155 case 5:
156 // KIE set TT_INPUT_INT_ENABLE to the low bit of the accumulator 156 // KIE set TT_INT_ENABLE to the low bit of the accumulator
157 inst.need_read_acc = true; 157 inst.need_read_acc = true;
158 inst.write_ctlreg = TT_INPUT_INT_ENABLE; 158 inst.write_ctlreg = TT_INT_ENABLE;
159 inst.ef = [](auto &ctx) { 159 inst.ef = [](auto &ctx) {
160 ctx.ctlval = ctx.acc.value() & 3; 160 ctx.ctlval = ctx.acc.value() & 3;
161 }; 161 };