OK bunky, so you’ve fought your way through the BBS and gotten to the QL program area – WHAT do all those files do?….
OK bunky, so you’ve come up with a dynamite ARCHIVE template, but it involves 6-8 related files. How will you keep them related on the BBS?….
OK bunky, so you’ve called in from a car phone in Singapore, but you can’t imagine going through a separate XMODEM sequence to retrive each file you want…. Is that what’s bothering you, bunky? (Oh. .It isn’t. Hmmm… How about reading the Editor’s column?) .LBR to the rescue!
What it is…
If you have hit any of the above situations, you stand to benefit from “Library” files. Library files allow multiple, related files to be stored as a single entry. This makes life easier in several ways:
1) The directory is less cluttered.
1a) This leaves only important programs in the directory – auxiliary files are kept alongside.
1b) This puts fewer separate entries in the fixed capacity of the directory – important because even the smallest file on the K-10 occupies 4K.
2) You can be reasonably assured that you have retrieved all the related files.
3) When telecommunicating, Library files allow you to download all the parts of a program in one shot.
There is a fair amount of time wasted listing the directory, calling up XMODEM, and getting it to send you what you want – the time savings and convenience of doing it at one shot can be considerable. There is a hint that a given entry is a library file – it ends with .LBR(ary). In all other respects is is a normal CP/M file.
You may also find files on other boards containing .ARK(ive) or .ARC(ive) extensions. They are equivalent compilations, assembled with an ARChive utility (NOT QL’s ARCHIVE). They in turn can be opened with UNARChive programs, such as the one by Harvey Taylor, as discussed below.
And how to use it…
To deal with .LBR files, you have two options. You can either use the resident library file utility on the BBS, or you can download the entire .LBR file to your machine and deal with it there.
Unfortunately, 2068 owners don’t have programs available that will perform these functions, so the second choice is for “QL owners only”.
The CP/M Option:
We’ll assume that you’ve (J)umped out of the BBS program and gotten to the B4> prompt. A DIR listing reveals several files ending in .LBR. You don’t NEED to just download the whole thing. Type: L filename …to get a listing of the component files held in “filename.LBR”.
Note the filenames! You are now armed with a list of the files held in that library. XMODEM will send a single file from within the .LBR file if invoked with: XMODEM L filename.LBR heldfile.ext [“heldfile.ext” is the component file you want, and “filename.LBR” is the library file that holds it].
You may have two further problems: the file may be compressed in some way, or it may be a machine code program for the QL. Keep reading.
The QL option:
What you need to have. The following actions depend on invoking a series of programs. These are not unique – the basic functions are performed by a variety of programs in the DOS or CP/M worlds. In the QL world, however, the only programs that I know of were written by Harvey Taylor, as “accessories” to his QLINK telecomm program. I have placed these accessory programs as a library file – QLINK-FI.LBR in User Area 4, QL programs.
The program to separate the files is on the board as a separate file – LU.JOB. This should allow the reader to “Bootstrap” his/her capacity to use .LBR files. QLINK itself is available as a .LBR file on the BBS. It is shareware, and it is worth the registration cost to get Harvey’s excellent manual for the program.
Downloading the files:
The first step is to dial up the BBS, and use the (J)ump to CP/M command. Make sure you’re in User Area B4, type: D (or DIR) ..You should find LU.JOB there. Type: XMODEM s LU.JOB<ENTER> …then set up the XMODEM recieve on your end.
Further use of XMODEM will also retrieve whatever .LBR files you are interested in. TYPE-DN would be a bad choice, as some of the files held in the .LBR file may be machine code.
Using LU_JOB
So you’ve retrieved your first .LBR file. You can’t run it. While you can look at the ASCII portions of it, the several component files are strung together in an un-runnable mess.
Now what? Well, it’s time to warm up LU_JOB by Harvey Taylor, to reach into that library and separate it into its component files. While you’ve got LU_JOB in your machine, it’s not quite ready to run. As with everything on these machines, there’s one more step. The file you retrieve will contain the correct commands to do what you want, but the QL needs to see a specific header on the file.
To create a running program, you must reset the machine, and type the following:
a=RESPR(6106)
REMark this reserves 6106 bytes of space in memory. "a" will be its address. I got the 6106 value via WSTAT flp1_.
LBYTES flp1_LU_JOB,a
REMark LU_JOB is now IN memory.
SEXEC flp1_LU_JOB,a,6106,0
REMark LU_JOB will be saved off, with a header telling the QL that it's a runnable program.
The operation of this program is simple – a mere matter of invoking the program with EX LU_JOB, telling it what file to work on, and following the occasional prompts provided.
The other shoe drops: .BQS, .DZC, etc… files: What They Are…
Mark…!…!…! I can’t read some of the separated files either! Oh yes (heh, heh, heh). When faced with a massive library of programs, burdened SYSOPS (me) have recourse to another trick. We/I can sQueeze or CRunch the files. Many files can stand to lose a lot of their bulk, without losing any of their meaning – a screen dump, for example, may have large areas of a single color. A sQueeze program would code that block of color with two bytes; showing what is repeated, and how many of that byte there are in the original.
And What to do…
On your end, an unsQueeze program will restore the original file. There is one last problem. There is more than one way to condense a program, and each method has it’s own method of un-condensing. The program involved leaves you a hint, however: an extra “Q” means it’s been “sQuoze”; use UNSQ_JOB. A “Z” in the extension means it’s been “crunZched” and you’ll have to use UNCR_JOB.
In operation, they are as simple to use as LU_JOB. Uploading: Assembling your own .LBRaries. Unfortunately, Mr. Taylor didn’t see fit to include the capacity to CREATE .LBR files in his version of LU_JOB. I have such an ability on the board, however – in User Area B8. You will have to upload each of the programs you intend to include in your .LBRary separately, using XMODEM. Then from the B8> cursor, type LU310, and follow its prompts to open , and then add programs to your .LBR file. When you’re done, don’t forget to leave a message about what’s there! If your files contain long text, BASIC or screen dumps, I can sQueeze them before they’re included in the .LBR file. Just leave me a note about which files need treatment, and I’ll finish the job.
I hope that the above discussion has given you a wider vision of what’s possible through the BBS.
Current .LBR files (2-15-91) on B4> (all QL)
BAS-BOOT.LBR Various utility BOOT programs BASGAMES.LBR BASIC games CAD-QL.LBR A drawing suite FILTER.LBR File utilities to ease translation to outside FONTS.LBR QL Fonts HUMOR.LBR Humor MACPT-QL.LBR Conversion suite to convert MacPaint files to QL QL52.LBR Effective Telecomm program suite QLINK-FI.LBR H. Taylor's File utilities QLINK-TE.LBR Effective Telecomm program suite