I think what's happening is that FNhi and FNlo are calculating base addresses which the base,X mode is then accessing. So the alignment that the 6502 sees is not the alignment of the stack% variable.
and laterand so on.
Edit: It might be a good idea to change the assembly options so you get a listing - all will be clear, perhaps.Edit: oops, of course the listing is already produced. You see for examplebeing assembled towhich is not page-aligned
Code:
60DEF FNhi(i%)=stack%+1+2*i% 70DEF FNlo(i%)=stack%+2*i%
Code:
90 LDA FNlo(i%),X
Edit: It might be a good idea to change the assembly options so you get a listing - all will be clear, perhaps.
Code:
240FOR pass=0 TO 3 STEP 3
Code:
LDA FNlo(i%),X
Code:
BD 63 26
Statistics: Posted by BigEd — Wed May 21, 2025 4:26 pm