From a51c6ed32f1bae3563341486a8ad545c5c801329 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sun, 11 May 2008 07:35:22 -0400 Subject: [PATCH 1/1] Fix ADD HL,xx. --- core/insn_add_hl.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/insn_add_hl.v b/core/insn_add_hl.v index bfd6880..6bd7e7a 100644 --- a/core/insn_add_hl.v +++ b/core/insn_add_hl.v @@ -20,7 +20,6 @@ `ifdef WRITEBACK `INSN_ADD_HL: begin case (cycle) - 0: {tmp,tmp2} <= `_HL + {tmp,tmp2}; 1: begin `_F <= { /* Z */ `_F[7], /* N */ 1'b0, @@ -28,7 +27,7 @@ /* C */ (({1'b0,`_HL} + {1'b0,tmp,tmp2}) & 17'h10000) ? 1'b1 : 1'b0, `_F[3:0] }; - `_HL <= {tmp, tmp2}; + `_HL <= `_HL + {tmp, tmp2}; end endcase end -- 2.43.0