Re: [cc65] forcing adressing mode

From: Oliver Schmidt <ol.sc1web.de>
Date: 2007-12-19 20:35:00
Hi,

Kind of interesting that nobody so far came up with the from my
perspective most natural usecase, one that hasn't to do with the way
the programmer and/or his tool (the assembler) works but with the way
the CPU works:

ldx #$20
lda $F0,x

loads from $0010 while

ldx #$20
lda a:$F0,x

loads from $0110. I had to use it i.e. in my ProDOS 8 loader. I'm
accessing the stack directly. But for some typical 6502 loop
termination optimization X is "one to large" so instead of

lda $100,x

I end up with

lda $FF,x

which I learned the hard way doesn't work as expected so I really needed a way
to force the absolute mode

lda a:$FF,x

Best, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 19 20:35:13 2007

This archive was generated by hypermail 2.1.8 : 2007-12-19 20:35:16 CET