Skip to navigation


Keyboard: GetDriverName

Name: GetDriverName [Show more] Type: Subroutine Category: Keyboard Summary: Fetch a player's name from the keyboard
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop (Part 3 of 6) calls GetDriverName
.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 subroutine