Skip to navigation

Revs on the BBC Micro

Text: yCursor

Name: yCursor [Show more] Type: Variable Category: Text Summary: The cursor's pixel y-coordinate
Context: See this variable in context in the source code References: This variable is used as follows: * Print2DigitBCD calls yCursor * PrintBestLapTime calls yCursor * PrintCharacter calls yCursor * PrintFirstLine calls yCursor * PrintGearNumber calls yCursor * PrintLapTime calls yCursor * PrintNearestDriver calls yCursor

In terms of printing text on-screen, we need to set: * yCursor = 24 for the first line of text * yCursor = 33 for the second line of text See the notes on the yLookupHi variable for information about the values of yCursor and how they relate to the custom screen.
.yCursor EQUB 0 EQUB &00, &00 \ These bytes appear to be unused