From f1dc9d8a59f17d884b9328c36df7d1202d0503aa Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Sun, 26 Nov 2023 00:18:15 +0000 Subject: [PATCH] Processor/Instructions: Fixed a bug where if IN executed after a microcoded instruction the cpu would go into undefined behavior --- system/decoder.v | 1 + 1 file changed, 1 insertion(+) diff --git a/system/decoder.v b/system/decoder.v index 5bec0e4..2616e31 100644 --- a/system/decoder.v +++ b/system/decoder.v @@ -945,6 +945,7 @@ always @( posedge clock ) begin ERROR<=0; ALU_OP<=`ALU_OP_ADD; next_state=`EXEC_MEMIO_READ_SETADDR; + seq_addr_entry<=`UCODE_NO_INSTRUCTION; end default:begin `invalid_instruction