]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
Fix ADD HL,xx.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 11 May 2008 11:35:22 +0000 (07:35 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 11 May 2008 11:35:22 +0000 (07:35 -0400)
core/insn_add_hl.v

index bfd6880a1ea3d53889af9c1bc9500109711817dd..6bd7e7a8dc17e8599cf6497eeb46b835cca827fd 100644 (file)
@@ -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
This page took 0.028695 seconds and 4 git commands to generate.