From c40499b83f238de9b1a88a080261546149784586 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 3 Dec 2020 19:03:08 +0100 Subject: some more opcodes for delay 7-seg example --- emu/6502.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'emu/6502.h') diff --git a/emu/6502.h b/emu/6502.h index baefd0f..bfc8314 100644 --- a/emu/6502.h +++ b/emu/6502.h @@ -48,15 +48,23 @@ enum { LDY_ZERO = 0xA4, LDA_IMM = 0xA9, LDA_ZERO = 0xA5, + STX_ZERO = 0x86, STX_ABS = 0x8E, + DEX_IMPL = 0xCA, DEY_IMPL = 0x88, + INY_IMPL = 0xC8, + INC_IMPL = 0xE6, ROL_ACC = 0x2A, BNE_REL = 0xD0, BCC_REL = 0x90, + BCS_REL = 0xB0, JMP_ABS = 0x4C, JSR_ABS = 0x20, RTS_IMPL = 0x60, - TXS_IMPL = 0x9A + TXS_IMPL = 0x9A, + CPX_IMM = 0xE0, + SBC_IMM = 0xE9, + NOP_IMPL = 0xEA }; void cpu_6502_init( cpu_6502_t *cpu, bus_t *bus, bool initialize ); -- cgit v1.2.3-54-g00ecf