Message #22 Posted by Dan M on 10 July 2003, 10:37 a.m.,
in response to message #20 by Dan M
I believe that program line 36 is a "space" and not a "clear alpha" register. One character of the alpha register after line 36 is written to the disk header, and I seem to recall that there must be something in the header after the volume label to mark the end of the volume label.
I am currently unable to get this program from a disk to a PC for further examination, so I can't be 100% sure right now but I can do it tomorrow if necessary.
ATOX gives "-1" if the alpha register is empty, and "32" if alpha register has a space. I don't know what OUTXB will do with "-1", so I think it should be a space and not a CLA
Again, credit for this program really belongs to the person who submitted the original version to the PPC Journal, I don't remember the name or the issue number. I revised that program by sticking on the prompt for "VOL NAM" at the start.
I also don't know/remember what the device-dependent-commands for the 9114B are (3, 6, 8 in this program). I think 3 is for "prepare to move to byte location, which will be sent next" and 6 is for "write the next byte sent to the current position" and 8 is for "move to home location" or "close device" or something like that.
This has been a useful program in the past. I will try to find the original author's name sometime and give due credit to him (or her!).