Skip to navigation

Revs on the BBC Micro

Keyboard: GetWingSettings

Name: GetWingSettings [Show more] Type: Subroutine Category: Keyboard Summary: Get the front and rear wing settings from the player
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * HeadToTrack calls GetWingSettings
.GetWingSettings LDX #5 \ Print "THE PITS" as a double-height header at column JSR PrintHeader \ 11, row 4, in blue text on a yellow background LDX #24 \ Print token 24, which shows the prompt "SELECT WING JSR PrintToken \ SETTINGS > range 0 to 40" and a further prompt of \ "rear > " JSR GetNumberInput \ Fetch a number from the keyboard STA rearWingSetting \ Store the entered number in rearWingSetting LDX #25 \ Print token 25, which shows a prompt of "front > " JSR PrintToken JSR GetNumberInput \ Fetch a number from the keyboard STA frontWingSetting \ Store the entered number in frontWingSetting JSR WaitForSpace \ Print a prompt and wait for SPACE to be pressed RTS \ Return from the subroutine