]> Joshua Wise's Git repositories - fpgaboy.git/blame - insn_ldh_ac.v
Semi-working, but prone to anus, keyboard driver
[fpgaboy.git] / insn_ldh_ac.v
CommitLineData
3ad960bd
JW
1`ifdef EXECUTE
2 `INSN_LDH_AC: begin
3 case (cycle)
5c33c5c0
JW
4 0: if (opcode[4]) // LD A,(C)
5 `EXEC_READ(({8'hFF,`_C}))
6 else
7 `EXEC_WRITE(({8'hFF,`_C}), `_A)
3ad960bd 8 1: begin
5c33c5c0
JW
9 `EXEC_NEWCYCLE
10 `EXEC_INC_PC
3ad960bd
JW
11 end
12 endcase
13 end
14`endif
15
16`ifdef WRITEBACK
17 `INSN_LDH_AC: begin
18 case (cycle)
19 0: begin /* Type F */ end
5c33c5c0 20 1: if (opcode[4]) `_A <= rdata;
3ad960bd
JW
21 endcase
22 end
23`endif
24
This page took 0.036533 seconds and 4 git commands to generate.