]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
Fix ld (nn), sp, for real this time.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 22 May 2008 01:16:20 +0000 (21:16 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 22 May 2008 01:16:20 +0000 (21:16 -0400)
core/insn_ld_nn_sp.v

index ade83fe7a68d6381fbb57195db4c383a123eb0ce..2d8604676a689fd607aad95a9b59fdb7f13e0165 100644 (file)
@@ -12,7 +12,7 @@
                                `EXEC_READ(`_PC + 16'h0001)
                        end
                2:      begin
-                               `EXEC_WRITE(({tmp, rdata}), `_SPL)
+                               `EXEC_WRITE(({rdata, tmp}), `_SPL)
                        end
                3:      begin
                                `EXEC_WRITE(({tmp, tmp2}), `_SPH)
@@ -30,7 +30,7 @@
                case (cycle)
                0:      begin end
                1:      tmp <= rdata;
-               2:      {tmp, tmp2} <= {tmp, rdata} + 1;
+               2:      {tmp, tmp2} <= {rdata, tmp} + 1;
                3:      begin end
                4:      begin end
                endcase
This page took 0.03015 seconds and 4 git commands to generate.