Loader V

Author(s): Bob Swoger
Publication: Nite-Times News
Pub Details: Nite-Times News v6 n6 (Volume 6, Issue 6)
Date: November/December 1992
Pages: 7-9

Kurt Casby gave us a real gem when he wrote Loader V for use with MTERM Smart terminal II. To review, both MTERM and MSCRIPT were written by Steve Pagliarulo of MICRO-SYSTEMS SOFTWARE INC. OF West Palm Beach, Florida, and therefore the file transfers between the two are compatible. What the TS2068 community needed was a way to move TASWORD TWO and machine code files using MTERM and XMODEM capability over MA BELL’s really bad long distance phone lines.

The essential features:

1) The ability to send and receive TASWORD files.
2) Send & receive using XMODEM file transfer protocol.
3) Upload BASIC files with long line statements to computers with limited input buffers like the club computer.

The nice added features:

4) Longer dialing menu.
5) Speed dialing.
6) Off-line buffer reloading.

!! LITTLE REALIZED FACT !! Loader V not only converts MSCRIPT files into TASWORD files but also converts TASWORD files into MSCRIPT files as well! LOADER.B1 gives us the ability to transform TASWORD files into MSCRIPT files as it loads the files into MTERM’s buffer beginning at address 26710! You can actually convert TASWORD files to MSCRIPT files without printer controls rather easily using this technique. To get the files back on disk as MSCRIPT files simply exit to BASIC from the MTERM Main Menu and save the file using the format RANDOMIZE USR 100: SAVE “filename.Cm” CODE 26710,BUFUSD BUFUSD is from the MTERM Main Menu screen in the lower right hand side.

Let us now define UPLOAD and DOWNLOAD. An UPLOAD TO a host means that you will put/pass/send/transmit data of some kind, be it a BASIC program, machine code, or a text file from your word processor, to a computer on the other end of your phone line. A DOWNLOAD FROM a host means that you will get/take/receive data of some kind from a computer on the other end of your phone line.

Loader V is made up of five programs. LOADER.BV, as re-written, comes up with CIS_UP and MTERM machine code loaded. This is the startup screen:

Loader V ©1985 by K.A.Casby

          MAIN MENU:

        1) RUN MTERM
        2) DIALING MENU
        3) LOAD BUFFER
        4) LOAD CIS-UP
        5) LOAD XMODEM
        6) EXIT

 PRINT USR 24024 - send
 PRINT USR 24415 - receive

Your Choice?

Write the two PRINT USR numbers down if you are going to use them during you terminal session, you will not see them again during your communication. Pressing 5 will load XMODEM into Loader V while pressing 4 will reload CIS-UP code back into Loader V. PRINT USR 24024 works to upload files in either CIS-UP mode or XMODEM, whichever one happens to be loaded. PRINT USR 24415 works only to receive XMODEM mode. This is explained in your manual.

To upload a TASWORD text file to a host, select 3 from the main menu. You are then asked which drive to go to and the CATalog of that disk is shown. Enter the filename and extension, press ENTER, and you are shown the next screen:

Loader V ©1985 by K.A.Casby

Name of File: ntnart.CT

Carriage returns:

1) None
2) Each line
3) Each paragraph

Your Choice?

1) is for machine code uploads [files that end in C_ but not CT], so select 2). You will then be back at the main menu where you may select either 1) or 2) to proceed.

RELOAD.B1 allows us to go off-line and reload MTERM’s buffer without terminating the session with the host computer.

CIS-UP.B1 permits operation with input buffered computers which have limited input buffer space. The CATUG and T/SNUG BBSs are such machines, limiting input strings to 256 characters. If you have a really long concatenated BASIC line of code, CIS-UP will chop up the line for you on the UPLOAD so that you don’t crash the host. This feature need not be used as it is now accessible from the Loader V main menu at 4).

TSXMDM.B1 gives us the ability to do XMODEM transfers not offered by MTERM. XMODEM protocol is Ward Christensen’s public domain gift to the community which repeatedly sends blocks of data to a host computer until it is received properly. Loader V is Kurt Casby’s gift to the Sinclair community which ‘puts it all together. This feature need not be used as it is now accessible from the Loader V main menu at 5).

UNLOAD.B1 converts MTERM files received as text and MSCRIPT files into TASWORD files.

The BASIC drivers of Loader V and RELOAD for LarKen are presented below. LOADER V has been given the name LDR.BV for use with LogiCall. A LarKen/LogiCall formatted Loader V disk and all documentation can be obtained from T/SNUG by calling Abed Kahale at [phone number omitted].

LDR.BV

   1 CLEAR VAL "29063": LET p=VAL "24007": LET f=VAL "20": LET h=CODE "d": LET m=CODE "w": LET s=PI+PI: DIM y$(VAL "12"): LET o=NOT PI: LET i=SGN PI: LET b=i+i: POKE VAL "23658",o: LET n$=" Loader V -©1985  by K.A.Casby ": BORDER i: PAPER i: INK VAL "9": OUT m,o: CLS : PRINT n$''''TAB PI*PI;"MAIN MENU:"'''TAB s;"1) RUN MTERM"''TAB s;"2) DIALING MENU"''TAB s;"3) LOAD BUFFER"''TAB s;"4) LOAD CIS-UP"''TAB s;"5) LOAD XMODEM"''TAB s;"6) EXIT"'''" PRINT USR 24024 - send"'" PRINT USR 24415 - receive": GO SUB PI: IF LEN z$<>i OR VAL z$<i OR VAL z$>s THEN GO TO i
2 GO TO VAL z$*f
3 INPUT "Your Choice? "; LINE z$: RETURN
20 RANDOMIZE USR VAL "23817"
40 LET t=i: CLS : RESTORE : PRINT n$: FOR x=CODE "a" TO CODE "t": READ z$,y$: PRINT CHR$ x;") ";z$;: LET y$(i)="-": PRINT TAB f;y$: BRIGHT x-INT (x/b)*b: NEXT x: PRINT "u) Dial a # not listed": GO SUB PI: IF z$<"a" OR z$>"u" THEN RUN
41 IF z$="u" THEN INPUT "Phone #? "; LINE y$: GO TO CODE "+"
42 RESTORE : FOR x=i TO b+b*(CODE z$-CODE "a"): READ y$: NEXT x
43 POKE p+b,CODE "0"+CODE ","*(CODE y$=CODE "E")+LEN y$*(CODE y$=CODE "0")
44 LET z$="": FOR x=i TO LEN y$: IF VAL y$(x)>=o AND y$(x)<="9" THEN LET z$=z$+y$(x)
45 OUT m,o: NEXT x: IF z$="" THEN RUN
46 BEEP VAL ".1",f: PRINT #o,;AT o,o; FLASH i;" Dialing - ";AT o,VAL "11"; OVER i;z$;" - Try#";t
47 OUT m,VAL "31": PAUSE VAL "60": FOR x=i TO LEN z$: LET z=VAL z$(x): IF z=o THEN LET z=f/b
48 PAUSE VAL "25": FOR d=i TO z: FOR e=INT PI TO VAL "4": OUT m,e: PAUSE b: NEXT e: OUT m,i: OUT m,b: NEXT d: NEXT x
49 FOR x=i TO VAL "2e3": IF IN m=VAL "133" THEN OUT m,VAL "34": POKE p+i,i: BEEP i,f: GO TO f
50 NEXT x: OUT m,o: PAUSE h: LET t=t+i: GO TO VAL "46"
60 INPUT "Drive? ";d: RANDOMIZE USR h: GO TO d: CLS : RANDOMIZE USR h: CAT ".C^",: INPUT "File name? "; LINE x$: CLS : PRINT n$'''"Name of File: ";: PRINT x$'''"Carriage returns:"''"1) None"'"2) Each line"'"3) Each paragraph": GO SUB PI: IF LEN z$<>i OR VAL z$<i OR VAL z$>PI THEN RUN
61 PRINT AT s,VAL "18";z$'''''''"Loading: '";x$;"'": RANDOMIZE USR VAL "23780": POKE VAL "23728",h: RANDOMIZE USR h: LOAD x$CODE VAL "29064": POKE p,VAL z$: PRINT : PRINT FLASH i;" LOAD complete, press any key! ": PAUSE o: RUN
80 RANDOMIZE USR h: LOAD "CIS-UP.CV"CODE : RUN
100 RANDOMIZE USR h: LOAD "TSXMDM.CV"CODE : RUN
120 ON ERR RESET : GO TO VAL "9998"
200 DATA "T/SNUG BBS","P17085767072"
201 DATA "CATUG BBS","P17085767140"
202 DATA "J Shepard","P[phone number omitted]"
203 DATA "D Lambert","P[phone number omitted]"
204 DATA "A Kahale","P[phone number omitted]"
205 DATA "R Swoger","P[phone number omitted]"
206 DATA "","P"
207 DATA "","P"
208 DATA "","P"
209 DATA "","P"
210 DATA "","P"
211 DATA "","P"
212 DATA "","P"
213 DATA "","P"
214 DATA "","P"
215 DATA "","P"
216 DATA "","P"
217 DATA "","P"
218 DATA "","P"
219 DATA "","P"
9001 RANDOMIZE USR h: LOAD "ldr.CV"CODE : RANDOMIZE USR h: LOAD "mterm2.CV"CODE : RUN
9992 LET h=CODE "d": RANDOMIZE USR h: SAVE "LDR.BV" LINE VAL "9e3"
9993 RANDOMIZE USR h: SAVE "ldr.CV"CODE VAL "23780",VAL "781": RANDOMIZE USR h: SAVE "mterm2.CV"CODE VAL "54016",VAL "9216"
9998 RANDOMIZE USR h: NEW

RELOAD.B1

   1 POKE VAL "23658",NOT PI: CLEAR VAL "29063": LET f=VAL "5": LET h=VAL "100": LET o=SIN PI: LET i=SGN PI: LET b=i+i: LET c=VAL "23780": LET n$=" Re*Loader ©1985  by K.A.Casby ": BORDER i: PAPER i: INK VAL "9": CLS : PRINT n$'''''''TAB VAL "7";"1) RUN MTERM"''''TAB VAL "7";"2) LOAD BUFFER": GO SUB PI: IF LEN z$<>i OR z$<"1" OR z$>"2" THEN RUN
2 GO TO VAL z$*f
3 INPUT "Your Choice? "; LINE z$: RETURN
5 ON ERR RESET : PRINT USR VAL "23817"
10 INPUT "DRIVE? ";D: RANDOMIZE USR h: GO TO D: CLS : RANDOMIZE USR h: CAT ".C^",: PRINT "Drive # 00";d: INPUT "Filename? "; LINE n$: CLS : PRINT '''"Name of File: ";: PRINT n$'''"Carria
10 INPUT "DRIVE? ";D: RANDOMIZE USR h: GO TO D: CLS : RANDOMIZE USR h: CAT ".C^",: PRINT "Drive # 00";d: INPUT "Filename? "; LINE n$: CLS : PRINT '''"Name of File: ";: PRINT n$'''"Carriage returns:"''"1) None"'"2) Each line"'"3) Each paragraph": GO SUB PI: IF LEN z$<>i OR z$<"1" OR z$>"3" THEN RUN
11 PRINT AT PI+PI,VAL "18";z$''''''''"Now Loading:"''"'";n$;"' from Drive # ";D: RANDOMIZE USR c: RANDOMIZE USR h: LOAD n$CODE VAL "29064": POKE VAL "24007",VAL z$: PRINT : PRINT FLASH i;" LOAD complete, press any key! ": PAUSE o: GO TO f
9992 RANDOMIZE USR h: SAVE "RELOAD.B1" LINE 1
9998 RANDOMIZE USR h: LOAD "L.B1"

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