diff options
Diffstat (limited to '')
| -rw-r--r-- | isa/ctlreg.def | 3 | ||||
| -rw-r--r-- | isa/decode.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/isa/ctlreg.def b/isa/ctlreg.def index c9eab05..d490073 100644 --- a/isa/ctlreg.def +++ b/isa/ctlreg.def | |||
| @@ -4,5 +4,4 @@ REG(HALTED) | |||
| 4 | REG(INT_ENABLE) // (int_enable_delay << 1) | int_enable | 4 | REG(INT_ENABLE) // (int_enable_delay << 1) | int_enable |
| 5 | REG(INT_PENDING) // only meaningful if interrupts disabled | 5 | REG(INT_PENDING) // only meaningful if interrupts disabled |
| 6 | REG(TT_BITS) // see TT[IO]_* consts in isa/isa.h | 6 | REG(TT_BITS) // see TT[IO]_* consts in isa/isa.h |
| 7 | REG(TT_INPUT_INT_ENABLE) // (status_enable << 1) | (int_enable) | 7 | REG(TT_INT_ENABLE) // (status_enable << 1) | (int_enable) |
| 8 | REG(TT_OUTPUT_INT_ENABLE) | ||
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 | }; |
