X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/81358c71b258a72a2777bba0a0b4a82a7cae298a..30ef1ae0e1d60f55aee401ad9741cb8d5a0feef0:/insn_ld_sp_hl.v?ds=sidebyside diff --git a/insn_ld_sp_hl.v b/insn_ld_sp_hl.v index ba10d5a..3d4fc18 100644 --- a/insn_ld_sp_hl.v +++ b/insn_ld_sp_hl.v @@ -1,13 +1,11 @@ `ifdef EXECUTE `INSN_LD_SP_HL: begin case (cycle) - 0: begin - tmp <= registers[`REG_H]; - end + 0: tmp <= `_H; 1: begin - `EXEC_NEWCYCLE; - `EXEC_INC_PC; - tmp <= registers[`REG_L]; + `EXEC_NEWCYCLE + `EXEC_INC_PC + tmp <= `_L; end endcase end @@ -16,8 +14,8 @@ `ifdef WRITEBACK `INSN_LD_SP_HL: begin case (cycle) - 0: registers[`REG_SPH] <= tmp; - 1: registers[`REG_SPL] <= tmp; + 0: `_SPH <= tmp; + 1: `_SPL <= tmp; endcase end `endif