Skip to navigation


Dashboard: SPBLB

[Commodore 64 version]

Name: SPBLB [Show more] Type: Subroutine Category: Dashboard Summary: Light up the space station indicator ("S") on the dashboard
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * KS4 calls SPBLB * NWSPS calls SPBLB * RES2 calls SPBLB
.SPBLB LDA SCELL ; EOR the colour byte at SCELL with the colour of the EOR #BULBCOL ; space station indicator bulb, so this either zeroes STA SCELL ; the character block for the top part of the space ; station bulb, which will hide it, or it sets it to ; BULBCOL, which will show it (so this toggles the top ; part of the space station bulb) LDA SCELL+40 ; Do the same for the bottom part of the space station EOR #BULBCOL ; bulb STA SCELL+40 RTS ; Return from the subroutine