X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/81358c71b258a72a2777bba0a0b4a82a7cae298a..5c33c5c001049403ac33d71bfbe0115c318c1b4c:/insn_ld_hl_reg.v diff --git a/insn_ld_hl_reg.v b/insn_ld_hl_reg.v index 0b98431..fdf3d9b 100644 --- a/insn_ld_hl_reg.v +++ b/insn_ld_hl_reg.v @@ -3,20 +3,20 @@ case (cycle) 0: begin case (opcode[2:0]) - `INSN_reg_A: wdata <= registers[`REG_A]; - `INSN_reg_B: wdata <= registers[`REG_B]; - `INSN_reg_C: wdata <= registers[`REG_C]; - `INSN_reg_D: wdata <= registers[`REG_D]; - `INSN_reg_E: wdata <= registers[`REG_E]; - `INSN_reg_H: wdata <= registers[`REG_H]; - `INSN_reg_L: wdata <= registers[`REG_L]; + `INSN_reg_A: wdata <= `_A; + `INSN_reg_B: wdata <= `_B; + `INSN_reg_C: wdata <= `_C; + `INSN_reg_D: wdata <= `_D; + `INSN_reg_E: wdata <= `_E; + `INSN_reg_H: wdata <= `_H; + `INSN_reg_L: wdata <= `_L; endcase - address <= {registers[`REG_H], registers[`REG_L]}; + address <= `_HL; wr <= 1; rd <= 0; end 1: begin - `EXEC_INC_PC; - `EXEC_NEWCYCLE; + `EXEC_INC_PC + `EXEC_NEWCYCLE end endcase end