[stella] About Stella's debugger asm

Bob.Montgomery at thomsonreuters.com Bob.Montgomery at thomsonreuters.com
Thu May 1 11:33:59 CDT 2008


Hi,

>I guess I was talking about the following from the previous example:
>
>PF2                      000f              (R )
>MusicNtscDuration        000f              (R )
>
>What makes one of these hardcoded, while the other is user-defined?

Most user-defined equates in the range $00 through $7F would only be
used as immediate values; i.e.:
lda #MusicNtscDuration
or something similar, since they for sure aren't RAM.  So where there is
a conflict between a user-defined value and a TIA register, you could
always use user-defined equates for immediate values and always use TIA
registers otherwise, i.e., 
sta $0F ; this could be PF2 or MusicNtscDuration, since it isn't an
immediate value use PF2: sta PF2
and #$0F ; this could be PF2 or MusicNtscDuration, since it is an
immediate value use the user-defined value.

Seems like that would work.

-Bob



More information about the Stella mailing list