Re: Aw: Re: [stella] Reflex: Source of PAIN!

Subject: Re: Aw: Re: [stella] Reflex: Source of PAIN!
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Mon, 5 Apr 2004 23:55:52 +0200
KirkIsrael wrote:
>> Hm... I used to interpret the # as "Use value as it's written", as
>> opposed to "Use the content of this memory address"

But you can't use the content of a memory address here!
.byte $f123 doesn't work!


> STRENGTH_OF_CEILING_REBOUND = #3

> SCORE_KERNAL_LENGTH = #5

No wonder that you got confused then. ;-)

Following your memory model you would do:
CONST = #123

lda CONST == lda #123

and

lda #CONST == lda ##123 ???

But this is NO C #define, this is an addressing mode.

BTW: What about WSYNC, CXM0P etc.? These are also just a constants.

Have fun!
Thomas                            
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread