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 uses yCursor * PrintBestLapTime uses yCursor * PrintCharacter uses yCursor * PrintFirstLine uses yCursor * PrintGearNumber uses yCursor * PrintLapTime uses yCursor * PrintNearestDriver uses 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