SpaceCoaster wrote:
One oddity that I noticed on both the sxb-hacker ports.
For the following instruction
Code:
stz 0,x
The WDC Tools generated an instruction using an absolute address.
Code:
9E 00 00
CA65 generates a direct page instruction.
Code:
74 00
The same thing happens for LDA, STA, ORA, ROL and ASL with 0,X as operands.
It looks like a WDC code generation bug to me.
Is there any chance there is a space between the zero and the comma?
Some assemblers treat extra characters on a line as a comment while others require that the comment start with a delimiter such as a semicolon.
Edit: ignore the above. I now see that you are talking about the indexed forms of the instructions.
Does the assembler allow the use of '<' or '>' to force the address size?