.UpdateIndicator STX WW \ Set WW to the value in X, so we can refer to it later \ if we overwrite the value in X CPX #0 \ If X = 0, jump down to uind1 to update indicator 0 BEQ uind1 CPX #2 \ If X < 2 (i.e. X = 1), jump down to uind2 to update BCC uind2 \ indicator 1 BEQ uind4 \ If X = 2, jump down to uind4 to update indicator 2 JMP uind7 \ X > 2, so jump down to uind7 to check for more values \ of XName: UpdateIndicator (Part 1 of 15) [Show more] Type: Subroutine Category: Dashboard Summary: Update a single indicator on the dashboardContext: See this subroutine in context in the source code References: This subroutine is called as follows: * ResetVariables calls UpdateIndicator * UpdateDashboard calls UpdateIndicator * UpdateFlightModel (Part 2 of 4) calls UpdateIndicator
Arguments: X Indicator number: * 0 = Compass * 1 = Airspeed indicator * 2 = Altimeter Small "hour" hand, whole dial = 10,000 feet * 3 = Altimeter Large "minute" hand, whole dial = 1,000 feet * 4 = Vertical speed indicator * 5 = Turn indicator Bottom part of the slip-and-turn indicator * 6 = Slip indicator Top part of the slip-and-turn indicator * 7 = Artificial horizon * 8 or 10 = Joystick position display * 9 = Rudder indicator * 11 = Thrust indicator
[X]
Label uind1 in subroutine UpdateIndicator (Part 2 of 15)
[X]
Label uind2 in subroutine UpdateIndicator (Part 3 of 15)
[X]
Label uind4 in subroutine UpdateIndicator (Part 4 of 15)
[X]
Label uind7 in subroutine UpdateIndicator (Part 6 of 15)