April 23, 1990
John E. Juergens
[address omitted]
Bill Jones
c/o UPDATE Magazine
1317 Stratford Avenue
Panama City, FL 32404
[Handwritten:] Interesting Letter with a way to SLAVE A QL TO A QL.
Dear Bill,
It was good to hear from you again. Sorry to hear about whatever caused your hospitalization but hope that it’s over for good. Believe it or not did not even particularly notice UPDATE’s lateness. That’s surely a sign of addle-patedness or very busy-ness on my part.
Your call for co-processing and Tim Stoddard‘s Trump Card’s Toolkit 2 article combined in my mind to produce some experimentation. I can’t recall seeing an article on the QL network device other than Tim Stoddard’s recent treatment. The results, attached, may or may not be of interest to the bretheren (and cistern ?) I persist in this despite numerous beatings about the ears by our many female offspring. They would call that remark sexist; I think it’s funny and harmless. When will we ever be able to agree again?
As to slave co-processing on the QL, ie. beyond the few transparent efforts built-in and assigned to the MAB whats-its-number, termed a “redirectable I/O system:” Personally, I’ve yet to see a need for more. You, on the other hand, sound as if you want a Cray on the desk.
Do even a small number of computerists (pretty high-toned, huh?) wish to have a dialogue with Compuserve while doing a document? And, if so, why not use Taskmaster or the poor-man’s multi-tasker that you sent me?
The end result of the notes, attached, sort of point in the direction of slave co-processing but, for the life of me, doubt that I can come up with a practical use for same. Perhaps what we (I) need is a seminar in “Uses”. If there’s a “use” I can sometimes come up with a “way.”
Have often thought about the ZX-81 and T/S 1000 sitting in a box in our garage, along with the 2-64K and 1-16K memory paks, a Byte Back RS 232 and Hunter board, and wondered what could they help me do that I cannot already do reasonably well with just the QL? That question has been unanswered for the many years now that we’ve had our QL(s).
The connection(s) is/are there: the RS 232 ports! All that remains is the programming and that is doable. But that statement, for me at least, still evades the first and necessary question: What to do with it once it’s hooked up?
Even with my limited programming skills, was able to re-do Psion’s VU-Calc for the ZX-81 and make it print out the whole spreadsheet to an 8 1/2 by 11 sheet of paper, 12 labled columns across by 26 labled rows, to the Gemini 10X. And, for a number of years, this worked well for our only use for same, a rather complete Federal and State estimated and final tax program; even with the 40 formulae limitation imposed by VU Calc. However, once I temporarily got my hands on Lotus 1-2-3 (in Rom on a PC Jr yet), my VU-Calc-is-just-fine mentality changed forever. Later, when I found I could get a QL AND an almost-Lotus-alike for less than the price of Lotus itself, we made the investment.
But my point is, finally, that our QL purchase obsoleted (if that really is a verb) our ZX-T/S and related equipment as far as our use is concerned. After considerable (and continuing) thought I simply cannot find a use for the old stuff that cannot be done better or at least as well by/on the QL. Nor can I envision an auxilliary (slave and/or co-processing) use that would NOT be more trouble than it’s worth. Don’t wish to be heard to say there isn’t one, just that I’ve been unable to come up with one. Hence, my suggestion, above, for a “Use” seminar.
Bill, the attached is pretty wordy, “Botts-like” if you will, so wont take it amiss if you don’t use it.
The QL Network device without ToolKit 2
(an exercize in patience, perseverence and humility)
John Juergens
For the several or more years we’ve owned a QL I’ve been aware of the fact that it’s supposed to be able to “network.” However, because we had not perceived a use for network-ing and the paucity of articles about it the device was never explored. Tim Stoddard, via his article on the Trump Card Users’ Guide, (UPDATE, Jan 1990), and Bill Jones’ “slave co-processing” article of the same issue, prompted my curiosity. Stoddard mentioned that a number of bugs in the QL Rom affect network-ing adversely; he neglected to mention that there are a number of bugs in the User Manual as well, equally adverse-affecting. However, if one does not know how a thing works to begin with bugs are not the big problem. Anyway, my curiosity continued and resulted in the following:
First, some QL User Guide references used: INTRODUCTION, p. 11; KEYWORDS: Copy, Load, Net, and Save (which is erroneous and should read SAVE neto_3); and CONCEPTS, pgs. 17 and 34.
What can be done with NETWORK without ToolKit 2? Probably, much more than follows but at least one may, to a limited degree, manipulate one QL from another.
Conditions: QL#1 is the master, ie. the keyboard of which you are operating, and QL#2 is the slave. Both QL#1 and QL#2 are connected via the net plugs, power is on and running in Superbasic ie. F1 or F2 have been pressed with NO cartridges or disks in drive #1. The following commands have been given to QL#2: Type net 2 : lrun neti_1 and press ENTER. Now, put cartridges and/or disks in QL#2 and go to the keyboard of QL#1.
To Print to the monitor or TV attached to QL#2 type the following program into QL#1:
9 REMark This is Program 1
10 a$="ABCDEF"
20 FOR i=1 to 100
30 PRINT a$;
40 NEXT i
50 LRUN neti_1
100 NET 1:SAVE neto_2, 10 to 50
Now type into QL#1: run 100 and watch “ABCDEF” appear 100 times on the left side of the monitor attached to QL#2 or the single screen of a TV attached to QL#2.
What has happened? First, when lrun neti_1 was typed into QL#2 you may have noticed the screen move as if clearing. You told QL#2 to “listen” for a program coming in FROM net 1. You could instead have commanded QL#2 to lrun neti_2, ie. “listen” for its own station number, NET 2, and the result would have been the same.
Secondly, the small program, statement lines 10 to 50, was NOT intended to be RUN on QL#1 even though it appears on the screen attached to QL#1. It was intended to be RUN on QL#2 and was sent to QL#2 via the SAVE statement on line 100. The SAVE statement used could as easily have SAVEd lines 10 thru 50 on QL#1 to a microdrive cartridge or a floppy disk if line 100 were changed to: 100 SAVE mdv1_Test, 10 to 50. Notice one difference however: The original Line 100 did NOT use nor require a file name while SAVEing to mdv or flp does. Why? I’m not certain but it seems reasonable that using NET is NEVER a permanent storage facility, it’s more like an intermediate, temporary transmitting device than a tape or disk, each of which is designed to store data later to be retrieved.
Why did QL#2 treat lines 10 to 50 on QL#1 as a program and RUN it? Recall the original command given to QL#2: lrun neti_1. That told QL#2 to listen to the net, (neti(n)), particularly for something coming from NET 1, treat it as a program and LOAD and RUN (lrun) it, which it did. If you had commanded QL#2 to listen for its own station number, NET 2, eg. lrun neti_2, it would have responded in exactly the same way BUT it would NOT have had to know in ADVANCE WHICH station was sending to it in order to get the message; in this case, lines 10 thru 50. The usefullness of listening to its own station number becomes apparent with more than 2 QLs on the network.
It should be mentioned here that the Users’ Guide, CONCEPTS, p. 34, talks about neto_0 (ZERO) and neti_0. I could not get either to work.
Why put in statement line 50? Because we wish to continue to keep QL#2 in abject slavery to QL#1. If line 50 were not there QL#2 would have printed “ABCDEF” 100 times and then gone off the network. To keep it listening, always put in the statement contained in line 50. At this point go to the QL#2 keyboard and press and hold CTRL while pressing the SPACE bar, then release both; this is a BREAK and will release QL#2 from listening to the network. You may have to type cls #2:edit 10:ENTER:ENTER to see lines 10 to 50 displayed on the screen attached to QL#2’s but they are there, meaning that QL#2 actually did LOAD (and run) the program originally typed into QL#1. The program in QL#2 should differ from the one in QL#1 only in that line 100 should NOT be present in QL#2. Why? Because line 100 only transmitted (SAVEd) lines 10 thru 50 to QL#2.
Is there another way to accomplish the same task? Not quite the same but similar. It is mentioned only to demonstrate another point. Since the CTRL-SPACE keypresses have interrupted QL#2’s net listening, type load neti_2 and ENTER it into QL#2. Note that Net 2 does not require re-entering as once done it remains until a power-off or reset occurs. Now, type into QL#1 the following program:
9 REMark This is Program 2
10 OPEN #5,neto_2 : REMark Lines 10, 20, 40 & 60 are for QL#1 only NOT QL#2
20 for i=1 to 100
30 print #5,'print"ABCDEF";' : REMark Only print "ABCDEF" goes to QL#2
40 NEXT i
50 print #5,'LOAD neti_2' : REMark Only LOAD neti_2 goes to QL#2
60 CLOSE #5
and type RUN and ENTER it.
The main point to the above is that QL#2, having been given the LOAD command, load neti_2, is put into a condition in which its expected input has been switched from the keyboard (type print “ABCDEF” and it prints it to the right screen, channel #1 if viewing on a monitor or the only screen if viewing with a TV but still channel #1) to another source of input; namely, a file or in this case what may be coming down the network.
When, for example, we have a program called BOOT on microdrive or disk, and either is in drive 1, and we type, in the Command mode (our typing appears at the bottom of the screen) load mdv1_BOOT (or load flp1_BOOT) we expect to see, after the drive stops and typing edit 1 and ENTER, the program BOOT on the screen with the statement line numbers arranged in ascending order.
What was NOT immediately apparent was that the input into the QL was turned over momentarily FROM the keyboard TO what was contained in the designated file, mdv1_BOOT. If BOOT had contained NO statement numbers (and we can prepare such a program in Quill, SAVE it to mdv1 as Test_doc, and LOAD it via load mdv1_Test_doc) the QL would have RUN the non-numbered statement lines just as if they had been individually typed-in from the keyboard in command mode and ENTERed. Remember, do NOT LRUN such a program, only LOAD it. The RUNing will be automatic.
This type of input has its limitations. If there are no statement line numbers there cannot be any GoTos, GoSubs or, probably, any PROCedures. And, if one decides to use it one must be careful that each line statement is correct and stands alone. However, that being said, the QL WILL execute such a “program” and when it’s done leave nothing to be observed in the way of a program on the screen or in memory except for variables which may have been initialized, AND it is very fast-running.
Back to Program 2: Lines 30 and 50 sort of require a split personality to understand. However, they represent one of the two ways to use the network facility. The first “print” in lines 30 and 50 tells QL#1 to send the remainder of the statement line only to QL#2, ie. don’t print to QL#1’s screen. When QL#2 gets these it acts on them just as if they were typed into QL#2’s keyboard in the command mode. The difference between Program 1 and 2 is that Program 2 requires QL#1 to do the FOR i loop and to send “ABCDEF” 100 times down the network to QL#2. Don’t bother with a BREAK, CLS #2, EDIT 1 routine on QL#2 because there’s no program behind the 100 “ABCDEF”s; not even Program 1 because a LOAD or LRUN clears out any existing program. Take a peek if you wish but there should not be anything there.
OPEN a channel and DIR a drive ON QL#2 FROM QL#1:
Send a Program to QL#2 – first ENTER lrun neti_2 on QL#2
10 REMark This is Program 3
20 OPEN #5,neto_1
30 DIR #5,mdv1_ (or flp1 or ram1)
40 CLOSE #5
50 LRUN neti_2
100 SAVE neto_2, 10 to 50
110 OPEN #5,neti_2
120 REPeat loop
130 INPUT #5,a$:PRINT a$
140 IF EOF(#5) THEN EXIT loop
150 END REPeat loop
160 CLOSE #5
Send ONLY instructions to QL#2 – first ENTER load neti_2 on QL#2
10 Remark This is Program 4
20 OPEN #5, neto_2
30 PRINT #5,'OPEN #6,neto_2'
40 PRINT #5,'DIR #6,mdv2_'
50 PRINT #5,'CLOSE #6'\'load neti_2'
100 RUN 20 to 60
110 CLOSE #5:OPEN #5, neti_2
120 REPeat loop
130 INPUT #5,a$:PRINT a$
140 IF EOF(#5) THEN EXIT loop
150 END REPeat loop
160 CLOSE #5
Start both Program 3 & 4 with the command: GoTo (or RUN) 100
NB. Program 4, line 50, the backslash outside the single-quote marks sends a Line Feed to QL#2 just as in an ordinary PRINT statement in Superbasic. The LF is needed by QL#2 to execute the CLOSE #6 statement. This is similar to the ENTER if you were typing in the line on the keyboard of QL#2. In the cases of lines 30 thru 50, the fact that a semi-colon is missing from the end of each statement line also ensures that a Line Feed will be sent after each line.
Load and Run QL#1 with a BOOT program residing on a drive in QL#2:
ENTER on QL#2: load neto_1 if it is not so running.
ENTER on QL#1: open #5,neto_2:print #5,’copy_n mdv1_ to neto_1′:print #5,’load neto_1:close #5:lrun neti_1
NB. If copy is used instead of copy_n, QL#1 will stop with a “not found” error report. Copy_n gets rid of the file header sending only the file data.
LOAD QL#1 with a Psion Program (QLWP, QLSS, QLDB or QLBG) residing on a drive controlled by QL#2:
ENTER on QL#2: load neti_2 command
ENTER on QL#1: open #5,neto_2:print #5,’copy mdv1_QLSS to neto_1′: print #5,’load neto_1′: close #5: exec_w neti_1
Once running in either Abacus or Quill commands may still be sent to QL#2 provided that you “left it listening”, either with lrun neti_2 or load neti_2, by typing in the instructions to Quill or a cell in Abacus and printing them to neto_1, eg. F3,P,ENTER for display,ENTER range,N for no border,F for file, neto_2 for Abacus. Remember, no margins, headers, footers, etc. in Quill and printing only the range in Abacus which contains the instructions. The other condition/limitation is that you must use the specially prepared printer driver explained by Tim Stoddard in his article. I cannot see much use for this but perhaps someone else may as I’ve not been able to figure a way to bring in data to Quill or Abacus other than to load a file on a drive attached to QL#2.
Am sure the above are not the only ways in which network can be used and I’m equally certain that they may not even be the best. However, they are a starting point for those interested in going further.