Move the core to core/
[fpgaboy.git] / core / insn_ldbcde_a.v
1 `ifdef EXECUTE
2         `INSN_LDBCDE_A: begin
3                 case (cycle)
4                 0:      if (opcode[3]) begin
5                                 if (opcode[4]) begin `EXEC_READ(`_DE) end
6                                 else begin `EXEC_READ(`_BC) end
7                         end else begin
8                                 if (opcode[4]) begin `EXEC_WRITE(`_DE, `_A) end
9                                 else begin `EXEC_WRITE(`_BC, `_A) end
10                         end
11                 1:      begin
12                                 `EXEC_INC_PC
13                                 `EXEC_NEWCYCLE
14                         end
15                 endcase
16         end
17 `endif
18
19 `ifdef WRITEBACK
20         `INSN_LDBCDE_A: begin
21                 case (cycle)
22                 0:      begin end
23                 1:      if (opcode[3]) `_A <= rdata;
24                 endcase
25         end
26 `endif
This page took 0.018512 seconds and 4 git commands to generate.