Communications

See all articles from Sinc-Link v5 n3
Publication: Sinc-Link
Pub Details: Sinc-Link v5 n3 (Volume 5, Issue 3)
Date: May/June 1987
Pages: 8

From the producers of the SPECTERM-64 Communications package:

Grey & Clifford Computer Products

Instructions for using SPECTERM-64 with disk drives- If you have loaded a file into the buffer with the JLO disk drive system ( or any other DOS system), to transmit that file, SPECTERM-64 needs to know the length of the file present in the buffer and where in the buffer it is located. Without this information, SPECTERM will assume that the buffer is empty and will obviously fail to transmit the file. Poke the ‘sum value’ of the length of the file plus the buffer start address into address locations 30816 and 30817 (30817 with the high value) to be transmitted via Xmodem. You can find the start of the buffer with FN p(x) formula as described on page 7 of the SPECTERM manual. The following routine should be added to the local control menu:

10 INPUT "ENTER CODE LENGTH";C
20 LET RCL = CL
30 IF INT(CL/128)<>CL/128 THEN LET CL = (INT(CL/128)+1)*128
40 LET HCL = INT((CL+FN P(30814))/256
50 LET LCL = (CL+FN P(30814)-HCL*256)
60 LOAD (your system's syntax) CODE FN P(30814)
70 POKE 30817,HCL:POKE 30816,LCL
80 IF CL>RCL THEN FOR F = 34048+RCL TO 34048+CL:POKE F,0
90 NEXT F
100 GOTO 1500 <--jump back to menu
Note HCL ="high byte" of code length
LCL ="low byte" of code length

Downloaded and reiterated by L.Foss and R.Mulder

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.