]> Joshua Wise's Git repositories - fpgaboy.git/blame - core/insn_ld_sp_hl.v
Move macro defines out to files
[fpgaboy.git] / core / insn_ld_sp_hl.v
CommitLineData
e7fe9dc2
JW
1`define INSN_LD_SP_HL 9'b011111001
2
81358c71
JW
3`ifdef EXECUTE
4 `INSN_LD_SP_HL: begin
5 case (cycle)
5c33c5c0 6 0: tmp <= `_H;
81358c71 7 1: begin
5c33c5c0
JW
8 `EXEC_NEWCYCLE
9 `EXEC_INC_PC
10 tmp <= `_L;
81358c71
JW
11 end
12 endcase
13 end
14`endif
15
16`ifdef WRITEBACK
17 `INSN_LD_SP_HL: begin
18 case (cycle)
5c33c5c0
JW
19 0: `_SPH <= tmp;
20 1: `_SPL <= tmp;
81358c71
JW
21 endcase
22 end
23`endif
This page took 0.03659 seconds and 4 git commands to generate.