1 // If opcode[4], then ld A, x, else ld x, A
2 // If opcode[1], then ld 16m8, else ld 8m8
5 `INSN_LD8M_A,`INSN_LD16M_A: begin
9 `EXEC_READ(`_PC + 16'h0001)
12 `EXEC_INC_PC // we only hit here if 16m8
13 `EXEC_READ(`_PC + 16'h0001)
15 2: if (opcode[4]) // LD A,x
16 `EXEC_READ(({tmp, tmp2}))
18 `EXEC_WRITE(({tmp, tmp2}), `_A)
28 `INSN_LD8M_A,`INSN_LD16M_A: begin
30 0: if (!opcode[1]) begin
32 cycle <= 1; /* Skip cycle 1 */
39 3: if (opcode[4]) `_A <= rdata;