From 2c13075cb50aaba5a6af0185b8f520347a8ab4b4 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 7 Oct 2022 19:24:27 -0700 Subject: Minor cleanup and some compilation fixes. --- isa/decode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isa/decode.cpp') 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 // Instructions with memory operands may be direct or indirect if (inst.need_exec_load || inst.need_exec_store || inst.possibly_redirects) { - auto addr = (df << 12) | ((bits & 00200) ? (next_pc & 07600) : 0) | (bits & 00177); + auto addr = (df << 12) | ((bits & 00200) ? (inst.next_pc & 07600) : 0) | (bits & 00177); if (bits & 00400) { inst.need_indirect_load = true; inst.init_address = addr; -- cgit v1.2.3