.msblob LDX #4 ; Set up a loop counter in X to count through all four ; missile indicators .ss CPX NOMSL ; If the counter is equal to the number of missiles, BEQ SAL8 ; jump down to SAL8 to draw the remaining missiles, as ; the rest of them are present and should be drawn in ; green LDY #BLACK2 ; Draw the missile indicator at position X in black JSR MSBAR DEX ; Decrement the counter to point to the next missile BNE ss ; Loop back to ss if we still have missiles to draw RTS ; Return from the subroutine .SAL8 LDY #GREEN2 ; Draw the missile indicator at position X in green JSR MSBAR DEX ; Decrement the counter to point to the next missile BNE SAL8 ; Loop back to SAL8 if we still have missiles to draw RTS ; Return from the subroutineName: msblob [Show more] Type: Subroutine Category: Dashboard Summary: Display the dashboard's missile indicators in greenContext: See this subroutine in context in the source code References: This subroutine is called as follows: * BR1 (Part 2 of 2) calls msblob * EQSHP calls msblob * SOS1 calls msblob
Display the dashboard's missile indicators, with all the missiles reset to green (i.e. not armed or locked).
[X]
Configuration variable BLACK2 = $B7
A multicolour bitmap mode palette byte for screen RAM that sets dark grey ($B) for %01 in the bitmap and yellow (7) for %10 in the bitmap, for displaying an empty missile indicator
[X]
Configuration variable GREEN2 = $57
A multicolour bitmap mode palette byte for screen RAM that sets green (5) for %01 in the bitmap and yellow (7) for %10 in the bitmap, for displaying a green missile indicator
[X]
Subroutine MSBAR (category: Dashboard)
Draw a specific indicator in the dashboard's missile bar
[X]
Label SAL8 is local to this routine
[X]
Label ss is local to this routine