]> Joshua Wise's Git repositories - fpgaboy.git/blame - core/insn_ld_hl_reg.v
Fix makefile, too
[fpgaboy.git] / core / insn_ld_hl_reg.v
CommitLineData
e7fe9dc2
JW
1`define INSN_LD_HL_reg 9'b001110xxx
2
81358c71
JW
3`ifdef EXECUTE
4 `INSN_LD_HL_reg: begin
5 case (cycle)
6 0: begin
7 case (opcode[2:0])
5c33c5c0
JW
8 `INSN_reg_A: wdata <= `_A;
9 `INSN_reg_B: wdata <= `_B;
10 `INSN_reg_C: wdata <= `_C;
11 `INSN_reg_D: wdata <= `_D;
12 `INSN_reg_E: wdata <= `_E;
13 `INSN_reg_H: wdata <= `_H;
14 `INSN_reg_L: wdata <= `_L;
81358c71 15 endcase
5c33c5c0 16 address <= `_HL;
81358c71
JW
17 wr <= 1; rd <= 0;
18 end
19 1: begin
5c33c5c0
JW
20 `EXEC_INC_PC
21 `EXEC_NEWCYCLE
81358c71
JW
22 end
23 endcase
24 end
25`endif
26
27`ifdef WRITEBACK
28 `INSN_LD_HL_reg: begin
29 /* Nothing of interest here */
30 end
31`endif
This page took 0.035816 seconds and 4 git commands to generate.