Skip to navigation


Dashboard: DIALS (Part 4 of 4)

[Apple II version]

Name: DIALS (Part 4 of 4) [Show more] Type: Subroutine Category: Dashboard Summary: Update the dashboard: shields, fuel, laser & cabin temp, altitude Deep dive: The dashboard indicators
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
LDA #16 ; Set K = 16 to use as the pixel x-coordinate of the STA K ; left end of the indicators in the left half of the ; dashboard, which we draw now LDA FSH ; Draw the forward shield indicator using a range of JSR DIS1 ; 0-255 LDA ASH ; Draw the aft shield indicator using a range of 0-255 JSR DIS1 LDA QQ14 ; Draw the fuel level indicator using a range of 0-63 JSR DIS1+2 LDA ALTIT ; Draw the altitude indicator using a range of 0-255 JSR DIS1 LDA CABTMP ; Draw the cabin temperature indicator using a range of JSR DIS1 ; 0-255 LDA GNTMP ; Draw the laser temperature indicator using a range of JSR DIS1 ; 0-255 JMP COMPAS ; We have now drawn all the indicators, so jump to ; COMPAS to draw the compass, returning from the ; subroutine using a tail call