This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: PZW Type: Subroutine Category: Dashboard Summary: Fetch the current dashboard colours, to support flashing
Set A and X to the colours we should use for indicators showing dangerous and safe values respectively. This enables us to implement flashing indicators, which is one of the game's configurable options.
.PZW
Returns: A The colour to use for indicators with dangerous values X The colour to use for indicators with safe values
LDA MCNT \ A will be non-zero for 8 out of every 16 main loop AND #%00001000 \ counts, when bit 4 is set, so this is what we use to \ flash the "danger" colour AND FLH \ A will be zeroed if flashing colours are disabled
RTS \ Return from the subroutine