1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Try to emulate all variants of LDA.

But some addressing modes are still unimplemented...
This commit is contained in:
Radosław Kujawa 2017-01-23 10:27:51 +01:00
parent 87c424557e
commit 9e32c3e493

View File

@ -160,7 +160,7 @@ OP_STA_ABSX,"sta",ABSOLUTEX,3,NULL
OP_STZ_ABSX,"stz",ABSOLUTEX,3,NULL
OP_BBS1_REL,"bbs1",RELATIVE,2,NULL
OP_LDY_IMM,"ldy",IMMEDIATE,2,NULL
OP_LDA_IZPX,"lda",IZPX,2,NULL
OP_LDA_IZPX,"lda",IZPX,2,emul_lda
OP_LDX_IMM,"ldx",IMMEDIATE,2,NULL
OP_NOPI_A4,"nop",IMPLIED,1,NULL
OP_LDY_ZP,"ldy",ZP,2,NULL
@ -172,23 +172,23 @@ OP_LDA_IMM,"lda",IMMEDIATE,2,emul_lda
OP_TAX,"tax",IMPLIED,1,NULL
OP_NOPI_AC,"nop",IMPLIED,1,NULL
OP_LDY_ABS,"ldy",ABSOLUTE,3,NULL
OP_LDA_ABS,"lda",ABSOLUTE,3,NULL
OP_LDA_ABS,"lda",ABSOLUTE,3,emul_lda
OP_LDX_ABS,"ldx",ABSOLUTE,3,NULL
OP_BBS2_REL,"bbs2",RELATIVE,2,NULL
OP_BCS_REL,"bcs",RELATIVE,2,NULL
OP_LDA_IZPY,"lda",IZPY,2,NULL
OP_LDA_IZP,"lda",IZP,2,NULL
OP_LDA_IZPY,"lda",IZPY,2,emul_lda
OP_LDA_IZP,"lda",IZP,2,emul_lda
OP_NOPI_B4,"nop",IMPLIED,1,NULL
OP_LDY_ZPX,"ldy",ZPX,2,NULL
OP_LDA_ZPX,"lda",ZPX,2,NULL
OP_LDA_ZPX,"lda",ZPX,2,emul_lda
OP_LDX_ZPY,"ldx",ZPY,1,NULL
OP_SMB3_ZP,"smb3",ZP,2,NULL
OP_CLV,"clv",IMPLIED,1,NULL
OP_LDA_ABSY,"lda",ABSOLUTEY,3,NULL
OP_LDA_ABSY,"lda",ABSOLUTEY,3,emul_lda
OP_TSX,"tsx",IMPLIED,1,NULL
OP_NOPI_BC,"nop",IMPLIED,1,NULL
OP_LDY_ABSX,"ldy",ABSOLUTEX,3,NULL
OP_LDA_ABSX,"lda",ABSOLUTEX,3,NULL
OP_LDA_ABSX,"lda",ABSOLUTEX,3,emul_lda
OP_LDX_ABSY,"ldx",ABSOLUTEY,3,NULL
OP_BBS3_REL,"bbs3",RELATIVE,2,NULL
OP_CPY_IMM,"cpy",IMMEDIATE,2,NULL

1 opcode_id mnemonic addressing size emulation
160 OP_STZ_ABSX stz ABSOLUTEX 3 NULL
161 OP_BBS1_REL bbs1 RELATIVE 2 NULL
162 OP_LDY_IMM ldy IMMEDIATE 2 NULL
163 OP_LDA_IZPX lda IZPX 2 NULL emul_lda
164 OP_LDX_IMM ldx IMMEDIATE 2 NULL
165 OP_NOPI_A4 nop IMPLIED 1 NULL
166 OP_LDY_ZP ldy ZP 2 NULL
172 OP_TAX tax IMPLIED 1 NULL
173 OP_NOPI_AC nop IMPLIED 1 NULL
174 OP_LDY_ABS ldy ABSOLUTE 3 NULL
175 OP_LDA_ABS lda ABSOLUTE 3 NULL emul_lda
176 OP_LDX_ABS ldx ABSOLUTE 3 NULL
177 OP_BBS2_REL bbs2 RELATIVE 2 NULL
178 OP_BCS_REL bcs RELATIVE 2 NULL
179 OP_LDA_IZPY lda IZPY 2 NULL emul_lda
180 OP_LDA_IZP lda IZP 2 NULL emul_lda
181 OP_NOPI_B4 nop IMPLIED 1 NULL
182 OP_LDY_ZPX ldy ZPX 2 NULL
183 OP_LDA_ZPX lda ZPX 2 NULL emul_lda
184 OP_LDX_ZPY ldx ZPY 1 NULL
185 OP_SMB3_ZP smb3 ZP 2 NULL
186 OP_CLV clv IMPLIED 1 NULL
187 OP_LDA_ABSY lda ABSOLUTEY 3 NULL emul_lda
188 OP_TSX tsx IMPLIED 1 NULL
189 OP_NOPI_BC nop IMPLIED 1 NULL
190 OP_LDY_ABSX ldy ABSOLUTEX 3 NULL
191 OP_LDA_ABSX lda ABSOLUTEX 3 NULL emul_lda
192 OP_LDX_ABSY ldx ABSOLUTEY 3 NULL
193 OP_BBS3_REL bbs3 RELATIVE 2 NULL
194 OP_CPY_IMM cpy IMMEDIATE 2 NULL