Skip to navigation


Drivers: ResetBestLapTime

Name: ResetBestLapTime [Show more] Type: Subroutine Category: Drivers Summary: Reset the best lap time to 10:00.0 for a specific driver
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop (Part 3 of 6) calls ResetBestLapTime * ResetBestLapTimes calls ResetBestLapTime

Arguments: X The driver number (0 to 19)
.ResetBestLapTime LDA #0 \ Zero the bestLapTenths entry for driver X STA bestLapTenths,X STA bestLapSeconds,X \ Zero the bestLapSeconds entry for driver X LDA #&10 \ Set the bestLapMinutes for driver X to 10 (as is it a STA bestLapMinutes,X \ BCD number) RTS \ Return from the subroutine EQUB &77 \ This byte appears to be unused