X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/00573fd53c3dc0b2aca146f085d30801a3aed576..fe3dc8909a6c72ce4208cb5b8b64bc6b2f8cebd6:/insn_ldm_a.v diff --git a/insn_ldm_a.v b/insn_ldm_a.v index ec98fa4..cd56b11 100644 --- a/insn_ldm_a.v +++ b/insn_ldm_a.v @@ -2,7 +2,7 @@ // If opcode[1], then ld 16m8, else ld 8m8 `ifdef EXECUTE - `INSN_LD8M_A,`INSN_LD16M_A: begin + `INSN_LD16M_A: begin case (cycle) 0: begin `EXEC_INC_PC @@ -25,17 +25,11 @@ `endif `ifdef WRITEBACK - `INSN_LD8M_A,`INSN_LD16M_A: begin + `INSN_LD16M_A: begin case (cycle) - 0: if (!opcode[1]) begin - tmp <= 8'hFF; - cycle <= 1; /* Skip cycle 1 */ - end + 0: begin end 1: tmp2 <= rdata; - 2: if (!opcode[1]) - tmp2 <= rdata; - else - tmp <= rdata; + 2: tmp <= rdata; 3: if (opcode[4]) `_A <= rdata; endcase end