From a40005c776c90fb6d8550ebecfe810ee14a398d6 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 29 May 2023 19:59:18 -0400 Subject: fix djn bug --- lib94/executors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib94/executors.cpp b/lib94/executors.cpp index c15eb7a..b9fac22 100644 --- a/lib94/executors.cpp +++ b/lib94/executors.cpp @@ -302,7 +302,7 @@ namespace lib94 { add_read_instruction(a_instruction_writable); add_read_instruction(b_instruction_writable); add_written_instruction(b_instruction_writable); - if (dest_in.dec_not_zero()) + if (dest_out.dec_not_zero()) program_counter = (a_instruction_writable - core + LIB94_CORE_SIZE - 1) % LIB94_CORE_SIZE; return true; } -- cgit v1.2.3