`ifdef EXECUTE
`INSN_LD_SP_HL: begin
case (cycle)
- 0: begin
- tmp <= registers[`REG_H];
- end
+ 0: tmp <= `_H;
1: begin
- `EXEC_NEWCYCLE;
- `EXEC_INC_PC;
- tmp <= registers[`REG_L];
+ `EXEC_NEWCYCLE
+ `EXEC_INC_PC
+ tmp <= `_L;
end
endcase
end
`ifdef WRITEBACK
`INSN_LD_SP_HL: begin
case (cycle)
- 0: registers[`REG_SPH] <= tmp;
- 1: registers[`REG_SPL] <= tmp;
+ 0: `_SPH <= tmp;
+ 1: `_SPL <= tmp;
endcase
end
`endif