.GetDriverName LDX currentPlayer \ Set X to the driver number of the current player JSR GetDriverAddress \ Set (Y A) to the address of driver X's name LDX #12 \ Fetch a string of length 12 from the keyboard and JSR GetTextInput \ store it in (Y A), padding the string out with spaces \ if required RTS \ Return from the subroutineName: GetDriverName [Show more] Type: Subroutine Category: Keyboard Summary: Fetch a player's name from the keyboardContext: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop (Part 3 of 6) calls GetDriverName
[X]
Subroutine GetDriverAddress (category: Text)
Get the address of the specified driver's name
[X]
Subroutine GetTextInput (category: Keyboard)
Fetch a string from the keyboard, padded with spaces if required
[X]
Variable currentPlayer in workspace Zero page
The number of the current player