]> Joshua Wise's Git repositories - fpgaboy.git/blame_incremental - core/insn_ldh_ac.v
Ethernet TX support
[fpgaboy.git] / core / insn_ldh_ac.v
... / ...
CommitLineData
1`define INSN_LDH_AC 9'b0111x0010 // Either LDH A,(C) or LDH (C),A
2
3`ifdef EXECUTE
4 `INSN_LDH_AC: begin
5 case (cycle)
6 0: if (opcode[4]) // LD A,(C)
7 `EXEC_READ(({8'hFF,`_C}))
8 else
9 `EXEC_WRITE(({8'hFF,`_C}), `_A)
10 1: begin
11 `EXEC_NEWCYCLE
12 `EXEC_INC_PC
13 end
14 endcase
15 end
16`endif
17
18`ifdef WRITEBACK
19 `INSN_LDH_AC: begin
20 case (cycle)
21 0: begin /* Type F */ end
22 1: if (opcode[4]) `_A <= rdata;
23 endcase
24 end
25`endif
26
This page took 0.025844 seconds and 4 git commands to generate.