CA65 Problems with some opcodes

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
CA65 Problems with some opcodes
by on (#129284)
I just figured out that for some reason, that any 6502 opcodes that end with '',X'' do not work with the newest version of CA65.

I got it from http://cc65.github.io/cc65/getting-started.html

Anyone seem to have the same problem?

(it says it's using an Illegal Addressing Mode, They work fine when I'm using ASM6)
Re: CA65 Problems with some opcodes
by on (#129295)
Indexed instructions work okay for me. What instruction is not working? Is it listed here: http://www.obelisk.demon.co.uk/6502/instructions.html ?
Re: CA65 Problems with some opcodes
by on (#129299)
Movax12 wrote:
Indexed instructions work okay for me. What instruction is not working? Is it listed here: http://www.obelisk.demon.co.uk/6502/instructions.html ?


It's listed, and I think it's the CFG file that is the problem, Reporting back soon!

EDIT: Nope, the CFG did not affect the X and Y (I) addressing modes, It seems also it might be because of PRG length limits on CA65 that it does not want to work, as anything over PRG bank 8 seems to cause problems!

BTW, this is my second attempt porting Southbird's SMB3's NESASM Disassembly over to CA65, it is a very incomplete WIP right now as half of the remaining original opcode related macros need to become it's non-macro counterparts for CA65 to work, as well as correcting errors and such.

Files will be zipped using 7z (in ZIP format, WinZip sux.) and included when requested!