+// If opcode[4], then ld A, x, else ld x, A
+// If opcode[1], then ld 16m8, else ld 8m8
+
+`ifdef EXECUTE
+ `INSN_LD8M_A: begin
+ case (cycle)
+ 0: begin
+ `EXEC_INC_PC
+ `EXEC_READ(`_PC + 16'h0001)
+ end
+ 1: if (opcode[4]) // LD A,x
+ `EXEC_READ(({8'hFF, rdata}))
+ else
+ `EXEC_WRITE(({8'hFF, rdata}), `_A)
+ 2: begin
+ `EXEC_NEWCYCLE
+ `EXEC_INC_PC
+ end
+ endcase
+ end
+`endif
+
+`ifdef WRITEBACK
+ `INSN_LD8M_A: begin
+ case (cycle)
+ 0: begin end
+ 2: begin end
+ 3: if (opcode[4]) `_A <= rdata;
+ endcase
+ end
+`endif
+