View Single Post
Old 04 April 2018, 12:12   #14
fstarred
Registered User
 
fstarred's Avatar
 
Join Date: Mar 2018
Location: Rome
Posts: 173
Quote:
Originally Posted by DanScott View Post
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
fstarred is offline  
 
Page generated in 0.04381 seconds with 11 queries