From: Christopher Zihao Lu Date: Sun, 11 May 2008 12:50:37 +0000 (-0400) Subject: fixed daa for no half carry, top carry, decimal carry on MSD, no decimal carry on LSD X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/31b9962d02cae0e935e392b688370504fd4125ff?ds=sidebyside fixed daa for no half carry, top carry, decimal carry on MSD, no decimal carry on LSD --- 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]};