X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/41341eb3bab6479dc763afbe90c7c31a01d6b60f..25f4912ce5d2a6c70a9f604502303a17359b19ec:/core/insn_add_sp_imm8.v diff --git a/core/insn_add_sp_imm8.v b/core/insn_add_sp_imm8.v index 06d58cc..3350bdc 100644 --- a/core/insn_add_sp_imm8.v +++ b/core/insn_add_sp_imm8.v @@ -20,7 +20,7 @@ `ifdef WRITEBACK `INSN_ADD_SP_IMM8: begin case (cycle) - 2: `_HL <= `_SP + {rdata[7] ? 8'hFF : 8'h00, rdata}; + 2: `_SP <= `_SP + {rdata[7] ? 8'hFF : 8'h00, rdata}; endcase end `endif