Skip to navigation

Aviator on the BBC Micro

Dashboard: IndicatorT

Name: IndicatorT [Show more] Type: Subroutine Category: Dashboard Summary: Update the Theme indicator ("T")
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop (Part 8 of 15) calls IndicatorT * ResetVariables calls IndicatorT
.IndicatorT LDA #%01110111 \ Set A to a four-pixel block with pixels 0, 1 and 2 in \ white, to act as the centre of the Theme indicator \ when turned on LDX themeStatus \ If themeStatus is positive then the Theme is enabled, BPL indt1 \ so jump to indt1 LDA #%01010101 \ Set A to a four-pixel block with pixels 0 and 2 in \ white, to act as the centre of the Theme indicator \ when turned off .indt1 LDX #2 \ Set X = 2 to use as a pixel row counter for the three \ pixel rows in the Theme indicator .indt2 STA row30_block0_2,X \ Update pixel row X of the Theme indicator to the pixel \ pattern in A DEX \ Decrement the byte counter to the pixel row above BPL indt2 \ Loop back to update the next row of the indicator RTS \ Return from the subroutine