- 0: begin
- `EXEC_INC_PC; // This goes FIRST in RST
- end
- 1: begin
- wr <= 1;
- address <= {registers[`REG_SPH],registers[`REG_SPL]}-1;
- wdata <= registers[`REG_PCH];
- end
- 2: begin
- wr <= 1;
- address <= {registers[`REG_SPH],registers[`REG_SPL]}-2;
- wdata <= registers[`REG_PCL];
- end
+ 0: `EXEC_INC_PC // This goes FIRST in RST
+ 1: `EXEC_WRITE(`_SP - 1, `_PCH)
+ 2: `EXEC_WRITE(`_SP - 2, `_PCL)