summaryrefslogtreecommitdiff
path: root/isa/decode.cpp
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-07 19:24:27 -0700
committerJulian Blake Kongslie2022-10-07 19:24:27 -0700
commit2c13075cb50aaba5a6af0185b8f520347a8ab4b4 (patch)
tree900b8ca92095272408b4434313ba81fef11856c3 /isa/decode.cpp
parentInitial commit. (diff)
downloadbiggolf-2c13075cb50aaba5a6af0185b8f520347a8ab4b4.tar.xz
Minor cleanup and some compilation fixes.
Diffstat (limited to 'isa/decode.cpp')
-rw-r--r--isa/decode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/decode.cpp b/isa/decode.cpp
index 8a85d41..5212ae7 100644
--- a/isa/decode.cpp
+++ b/isa/decode.cpp
@@ -79,7 +79,7 @@ instruction_context decode(unsigned int dfifb, unsigned int pc, unsigned int bit
79 79
80 // Instructions with memory operands may be direct or indirect 80 // Instructions with memory operands may be direct or indirect
81 if (inst.need_exec_load || inst.need_exec_store || inst.possibly_redirects) { 81 if (inst.need_exec_load || inst.need_exec_store || inst.possibly_redirects) {
82 auto addr = (df << 12) | ((bits & 00200) ? (next_pc & 07600) : 0) | (bits & 00177); 82 auto addr = (df << 12) | ((bits & 00200) ? (inst.next_pc & 07600) : 0) | (bits & 00177);
83 if (bits & 00400) { 83 if (bits & 00400) {
84 inst.need_indirect_load = true; 84 inst.need_indirect_load = true;
85 inst.init_address = addr; 85 inst.init_address = addr;