]>
Commit | Line | Data |
---|---|---|
e7fe9dc2 JW |
1 | `define INSN_LD_reg_reg 9'b001xxxxxx |
2 | ||
81358c71 JW |
3 | `ifdef EXECUTE |
4 | `INSN_LD_reg_reg: begin | |
5c33c5c0 JW |
5 | `EXEC_INC_PC |
6 | `EXEC_NEWCYCLE | |
81358c71 | 7 | case (opcode[2:0]) |
5c33c5c0 JW |
8 | `INSN_reg_A: tmp <= `_A; |
9 | `INSN_reg_B: tmp <= `_B; | |
10 | `INSN_reg_C: tmp <= `_C; | |
11 | `INSN_reg_D: tmp <= `_D; | |
12 | `INSN_reg_E: tmp <= `_E; | |
13 | `INSN_reg_H: tmp <= `_H; | |
14 | `INSN_reg_L: tmp <= `_L; | |
81358c71 JW |
15 | endcase |
16 | end | |
17 | `endif | |
18 | ||
19 | `ifdef WRITEBACK | |
20 | `INSN_LD_reg_reg: begin | |
21 | case (opcode[5:3]) | |
5c33c5c0 JW |
22 | `INSN_reg_A: `_A <= tmp; |
23 | `INSN_reg_B: `_B <= tmp; | |
24 | `INSN_reg_C: `_C <= tmp; | |
25 | `INSN_reg_D: `_D <= tmp; | |
26 | `INSN_reg_E: `_E <= tmp; | |
27 | `INSN_reg_H: `_H <= tmp; | |
28 | `INSN_reg_L: `_L <= tmp; | |
81358c71 JW |
29 | endcase |
30 | end | |
31 | `endif |