]>
Commit | Line | Data |
---|---|---|
81358c71 JW |
1 | `ifdef EXECUTE |
2 | `INSN_POP_reg: begin /* POP is 12 cycles! */ | |
3 | case (cycle) | |
5c33c5c0 JW |
4 | 0: `EXEC_READ(`_SP) |
5 | 1: `EXEC_READ(`_SP + 1) | |
81358c71 | 6 | 2: begin |
5c33c5c0 JW |
7 | `EXEC_NEWCYCLE |
8 | `EXEC_INC_PC | |
81358c71 JW |
9 | end |
10 | endcase | |
11 | end | |
12 | `endif | |
13 | ||
14 | `ifdef WRITEBACK | |
15 | `INSN_POP_reg: begin /* POP is 12 cycles! */ | |
16 | case (cycle) | |
17 | 0: begin end | |
18 | 1: begin | |
19 | case (opcode[5:4]) | |
5c33c5c0 JW |
20 | `INSN_stack_AF: `_F <= rdata; |
21 | `INSN_stack_BC: `_C <= rdata; | |
22 | `INSN_stack_DE: `_E <= rdata; | |
23 | `INSN_stack_HL: `_L <= rdata; | |
81358c71 JW |
24 | endcase |
25 | end | |
26 | 2: begin | |
27 | case (opcode[5:4]) | |
5c33c5c0 JW |
28 | `INSN_stack_AF: `_A <= rdata; |
29 | `INSN_stack_BC: `_B <= rdata; | |
30 | `INSN_stack_DE: `_D <= rdata; | |
31 | `INSN_stack_HL: `_H <= rdata; | |
81358c71 | 32 | endcase |
5c33c5c0 | 33 | `_SP <= `_SP + 2; |
81358c71 JW |
34 | end |
35 | endcase | |
36 | end | |
37 | `endif |