From d5f5bdeb2a32814a2eae9a98b7a2ade5450e281e Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 18 Jan 2022 08:49:23 -0400 Subject: Add `LDA` opcodes to accumulator bitmask. --- sux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sux.h b/sux.h index df99c76..23ab73a 100644 --- a/sux.h +++ b/sux.h @@ -1810,7 +1810,7 @@ static /*inline*/ void inst_##op(struct sux *cpu, uint8_t prefix, uint8_t size, t(0, 0x01000000, 0x01000000, 0x04000400, 0x00000000, 0x00000000, 0x40000000, 0x40000000, 0x00000000) { pre_idx = 1; } /* Set pre-index flag, for indexed indirect. */ \ t(0, 0x07101210, 0x17101410, 0x14001400, 0x10001000, 0x10000000, 0x40000000, 0x40000000, 0x00000000) { addr = ind_idx_addr(cpu, prefix, inc_clk, ZM, inc_pc, idx, pre_idx); } /* Indirect addressing, with indexing. */ \ /* Load Source. */ \ - t(0, 0x02220022, 0x00320422, 0x00220432, 0x00661076, 0x00660066, 0x00660466, 0x51665466, 0x00660466) { reg = &cpu->a; } /* Most operations use the accumulator as an operand */ \ + t(0, 0x02220022, 0x03760576, 0x00220432, 0x00661076, 0x00660066, 0x00660466, 0x51665466, 0x00660466) { reg = &cpu->a; } /* Most operations use the accumulator as an operand */ \ t(0, 0x04100000, 0x04000000, 0x04000200, 0x02000000, 0x10000000, 0x51005000, 0x00000000, 0x04100110) { reg = &cpu->b; } /* stb, cpb, inb, deb, tba */ \ t(0, 0x00000000, 0x00001200, 0x02000000, 0x00001000, 0x05001000, 0x04000000, 0x00100110, 0x00000000) { reg = &cpu->x; } /* stx, cpx, inx, dex, txa, txy */ \ t(0, 0x00000000, 0x00000000, 0x00000000, 0x10001200, 0x02000400, 0x00100110, 0x04000000, 0x01001000) { reg = &cpu->y; } /* sty, cpy, iny, dey, tya, tyx */ \ -- cgit v1.2.3-13-gbd6f