Phil’s Wacky Wheels Site

Editing time trial scores

WACKY1.TIM contains the best times for time trials with 12 hp engines. WACKY2.TIM contains times for 6 hp engines. Each file contains 30 lines, each 120 bytes long (but there are no line breaks in the file). Each line contains the following:

Here’s how to edit the two bytes containing the time:

Convert the two bytes into a time

For example, if the two bytes read “60 1” (in decimal, or “3C 01” in hex), the time is (60 / 10) + (1 * 25.6) = 31.6.

Find the bytes needed for a particular time

For example, a time of 1 minute, 39.6 seconds equals 99.6 seconds. 99.6 / 25.6 = 3.890625. 0.890625 * 256 = 228, so the two bytes should be “228 3.”

For programming computers, you can convert a time into two bytes this way: