Skip to navigation

Revs on the BBC Micro

Drivers: ResetBestLapTimes

Name: ResetBestLapTimes [Show more] Type: Subroutine Category: Drivers Summary: Reset the best lap times to 10:00.0 for all drivers
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainLoop (Part 1 of 6) calls ResetBestLapTimes * MainLoop (Part 3 of 6) calls ResetBestLapTimes * MainLoop (Part 5 of 6) calls ResetBestLapTimes
.ResetBestLapTimes LDX #19 \ We are about to reset the current lap times for \ all 20 drivers, so set a driver counter in X .rall1 JSR ResetBestLapTime \ Reset the best lap time to 10:00.0 for driver X DEX \ Decrement the driver counter BPL rall1 \ Loop back to reset the next set of bytes until we have \ reset all 20 drivers RTS \ Return from the subroutine