Rewrites the head-stepping rate stored in track 0 of a Larken disk (6, 12, 20 or 30 ms), so that a disk formatted on a drive with a fast stepping rate can be read on older 30 ms drives. A 31-byte machine-code routine at 40000 reads track 0, sets the rate and writes it back.
Listing only: it selects the drive with RANDOMIZE USR 100: GO TO dr and the code calls the LKDOS disk routines.
Reprinted from the Chicago Area Timex UG newsletter.
Published in Sinc-Link January-February 1991 (Stepping Rate Fix).
Source Code
10 REM STEP RATE CHANGER vlg.0 BY LARRY KENNY AND BOB SWOGER
20 REM Further modified by G. Chambers.
25 CLS : PRINT ''" Disk Head Stepping Modifier"'''
30 PRINT " A common head step rate is 6 ms, however some older drives need a slower head step rate. This program allows you to change it to another value."''" Remove the write-protect label,select the drive & the desired head speed, and place the disk to be modified into the drive. Then press ENTER"
35 PRINT ''TAB 8;"and..."''" Presto... The job is done."
38 INPUT "Select drive(0/3) ";dr: IF dr 0 OR dr 3 THEN GO TO 38
40 RANDOMIZE USR 100: GO TO dr
50 INPUT "Select head speed(6/12/20/30)";hs
60 IF hs=6 OR hs=12 OR hs=20 OR hs=30 THEN GO TO 80
70 GO TO 50
80 POKE 40015,(0 AND hs=6)+(1 AND hs=12)+(2 AND hs=20)+(3 AND hs=30)
90 RESTORE 150
110 FOR n=40000 TO 40030
120 READ b: POKE n,b: NEXT n
150 DATA 243,205,98,0,175,50,29,32,205,126,0,205,123,0,62,3,50,134,32,205,120,0,58,100,0,251,201,0,0,0,0
250 RANDOMIZE USR 40000
300 PRINT ''" Head speed changed to ";hs;" ms."
400 STOP
9000 PRINT USR 100: SAVE "rate.B1" LINE 1Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.