From 31b9962d02cae0e935e392b688370504fd4125ff Mon Sep 17 00:00:00 2001 From: Christopher Zihao Lu Date: Sun, 11 May 2008 08:50:37 -0400 Subject: [PATCH 1/1] fixed daa for no half carry, top carry, decimal carry on MSD, no decimal carry on LSD --- core/insn_alu_a.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/insn_alu_a.v b/core/insn_alu_a.v index 3d7e917..5806438 100644 --- a/core/insn_alu_a.v +++ b/core/insn_alu_a.v @@ -96,8 +96,8 @@ end else begin if (`_A[7:4] > 4'h9) begin - `_A <= `_A + 8'h66; - `_F <= {((`_A + 8'h66) == 8'b0), `_F[6:5], 1'b1, `_F[3:0]}; + `_A <= `_A + 8'h60; + `_F <= {((`_A + 8'h60) == 8'b0), `_F[6:5], 1'b1, `_F[3:0]}; end else begin `_F <= {(`_A == 8'b0), `_F[6:0]}; -- 2.43.0