`ifdef EXECUTE
`INSN_LDH_AC: begin
case (cycle)
- 0: begin
- address <= {8'hFF,registers[`REG_C]};
- if (opcode[4]) begin // LD A,(C)
- rd <= 1;
- end else begin
- wr <= 1;
- wdata <= registers[`REG_A];
- end
- end
+ 0: if (opcode[4]) // LD A,(C)
+ `EXEC_READ(({8'hFF,`_C}))
+ else
+ `EXEC_WRITE(({8'hFF,`_C}), `_A)
1: begin
- `EXEC_NEWCYCLE;
- `EXEC_INC_PC;
+ `EXEC_NEWCYCLE
+ `EXEC_INC_PC
end
endcase
end
`INSN_LDH_AC: begin
case (cycle)
0: begin /* Type F */ end
- 1: if (opcode[4])
- registers[`REG_A] <= rdata;
+ 1: if (opcode[4]) `_A <= rdata;
endcase
end
`endif