]> Joshua Wise's Git repositories - fpgaboy.git/blob - insn_ld_sp_hl.v
3d4fc1846ba54dca0b1003534c6beb14e17e9f66
[fpgaboy.git] / insn_ld_sp_hl.v
1 `ifdef EXECUTE
2         `INSN_LD_SP_HL: begin
3                 case (cycle)
4                 0:      tmp <= `_H;
5                 1:      begin
6                                 `EXEC_NEWCYCLE
7                                 `EXEC_INC_PC
8                                 tmp <= `_L;
9                         end
10                 endcase
11         end
12 `endif
13
14 `ifdef WRITEBACK
15         `INSN_LD_SP_HL: begin
16                 case (cycle)
17                 0:      `_SPH <= tmp;
18                 1:      `_SPL <= tmp;
19                 endcase
20         end
21 `endif
This page took 0.019895 seconds and 2 git commands to generate.