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