Home » Personal collection » Commodore tapes » Commodore_16 » drawer_br_tape03b_c16_basic2.wav » reaction
reaction
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Personal collection » Commodore tapes » Commodore_16 » drawer_br_tape03b_c16_basic2.wav |
| Filename: | reaction |
| Read OK: | ✔ |
| File size: | 0263 bytes |
| Load address: | 1001 |
| Exec address: | 0000 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Commodore tapes » Commodore_16 » drawer_br_tape03a_c16_basic2.wav » reaction
- Personal collection » Commodore tapes » Commodore_16 » drawer_br_tape03b_c16_basic2.wav » reaction
File contents
10 REM REACTION TIME PROGRAM
20 PRINT"<clr><black>"
30 PRINT"TO MEASURE YOUR REACTION TIME HIT ANY"
40 PRINT"KEY, AND THEN WAIT FOR THE TONE."
50 PRINT"WHEN YOU HEAR IT, STRIKE ANY KEY AS"
60 PRINT"FAST AS YOU CAN. GOOD LUCK!"
70 REM WAIT FOR ANY KEY
80 GET A$
90 IF A$=""THEN80
100 REM WAIT A RANDOM TIME
110 PRINT
120 PRINT"WAIT FOR IT!"
130 PRINT
140 Q=TI+INT(60+301*RND(0))
150 GET A$
160 IFA$<>""THEN 310
170 IF TI<Q THEN 150
180 REM START TONE AND NOTE TIME
190 VOL 7
200 SOUND1,950,4
210 X=TI
220 REM WAIT FOR ANY KEY
230 GET A$
240 IFA$=""THEN230
250 REM GET RESULT
260 R=TI
270 REM DISPLAY RESULT
280 PRINT"YOUR REACTION TIME IS"
290 PRINT(R-X)/60;"SECONDS"
300 STOP
310 PRINT"TOO SOON"
320 STOP
� REACTION TIME PROGRAM ' �"��"