Bob’s Notebook: Odds & Ends

See all articles from Sinc-Link v9 n1
Author(s): Bob Mitchell
Publication: Sinc-Link
Pub Details: Sinc-Link v9 n1 (Volume 9, Issue 1)
Date: January/February 1991
Pages: 4-5

DISK NAME GARBAGE

Have you ever used disk doctor to look at the Disk Name area on track (block) zero of any of your disks? If you have or if you do, you might notice that there is a lot of nonsense after the proper disk name that ought not to be there.

Try this: Load doctor.B1 from the club omnibus disk or other copy. Then put a disk in an appropriate drive and examine track 0. Press <d> to examine the directory name area. The current name will end with a zero. After that there should be zeroes. More than likely there will be a lot of left over “crud” that the Larken system never removes, not even on using the format routine! If you’re a nut for tidying up things, try this: BREAK into the BASIC and put in a line (I numbered it 1805) as follows (“NOT ” is the token NOT on the <s> key): <IF i$=”NOT “THEN INPUT;:PRINT #0;AT 0,0;”Standby…”:FOR i=54500 TO 55119:POKE i,0: NEXT i: GO TO 1650>. Restart “doctor” and get to the point where you’re looking at the Disk Name area which starts at byte 4500 and goes up to byte 5119 or so; these bytes being added to the start of buffer 50000 make the addresses 54500 to 55119. Now press the token NOT on the <s> key and you’ll see the lower screen (menu) disappear and be replaced by <Standby…>. The <INPUT;> wipes out the lower screen, which is a good trick often useful in many other applications. In about 20 seconds, the display will re-appear; now save the track in the usual way, making sure that no write protect tab is on. If you now examine the disk name area, it will be full of zeroes. You will have to re-enter the current disk name.

Now the source of all this trouble appears to lie with the original Hcode.C1 provided with format.B1 by Larry Kenny. I’m not one hundred percent sure of this, but my original copy on the Larken-provided disk was full of garbage in the disk name area. If you want to clear Hcode.C1, you will have to examine it from about 41000 to 41179 or so; do a similar POKE operation to input zeroes and re-save the code (2000 bytes long).

It would be possible to replace the FOR…NEXT loop with a code LDIR routine, but once the Hcode is corrected, the need to do any more clean up jobs should die out.

CHECK PRINTER READY

In some of my program or disk documentation and in previous columns, I have mentioned that the IN 127 value of 237 represents the reading I get with my Fastext 80 printer when it is ready to print. There’s more to this: the problem really lies with the particular TS2068 machine for all are not alike. While most apparently give the 237 result, other do not.

PRINTING A POUND SIGN

I recently ran into a situation where I needed to print a POUND sign (that’s on the <x> key) on the wide printer because that key had to be pressed to make a certain program run properly. I found that wherever the POUND sign was to appear in the text, I had to type a <#> sign.

Then, by proper commands to the printer, it could be made to switch character sets to the British one. Each time it encountered a <#> symbol, it printed the POUND sign. The way to do it probably varies, but with my printer, I did the following:

PRINT #4: POKE 16093,32: REM Larken double poke command
PRINT #4: POKE 16098,3
LPRINT CHR$27;"R";CHR$2: REM check your printer manual for
correct commands here
PRINT #4: POKE 16093,0
PRINT #4: POKE 16098,0
PRINT #4: POKE 16094,m: REM needed because POKE 16093 also
changed 16094 (where m is the required margin setting).

The printer will now be conditioned for the British character set.

BUG ALERT! LK2CPY.B1 (Richard Hurd’s Program).

This is a very useful utility for making a duplicate copy of a disk between two drives having the same number of sides and tracks. But, if the original disk is FULL, the utility will give a false CRC error as it does not know enough to STOP when all tracks have been copied. The following lines will correct the problem:

ADD <2065 LET blx=sid*numtrks>
ADD <635 IF a=blx THEN GO TO 740>

I have only confirmed this OK using two DSDDs. But I have just installed a 3.5 inch 720k drive and will eventually check this out again.

BUG ALERT! INDEX.B1

ADD <102 RANDOMIZE USR 100: CLOSE #3> to ensure that the TS2040 will function when called upon by the disk indexer program.

Bob Mitchell 901209