Quote:
Originally Posted by DanScott
Probably will be better for you to store your bar y position in a memory location and then "build" your copper wait with code
Then you can write beam wait positions, colour changes, and the PAL wait ($ffdf,$fffe) in the right order depending on the exact position of the bar... eg bar is above the line 255, bar is ON line 255 and bar is below line 255 (all cases would have the PAL wait copper command in a different place in relation to the other waits)
|
Sounds reasonable, so the code would be something like this:
Code:
BEGIN_COPPERLIST: ; never changes
...
REDBAR_ABOVE_FF:
dc.w ... ; redbar position
dc.w FFFD, FFFE ; end line (255)
RTS
REDBAR_BELOW_FF:
dc.w FFFD, FFFE ; end line (255)
dc.w ... ; redbar position
My idea is to clear, according to redbar position, REDBAR_* label and append to BEGIN_COPPERLIST the needed LABEL_*, hovever I miss how to do it with assembly.
An example:
FOO: $11 $22 ; and so on
I want to put $FF at the end of the label FOO, but I don't know how much FOO is at compile time, is there any way to do this with asm?
Thank you very much