80 Column VU-CALC

See all articles from CATS v4 n9
Author(s): Mark Fisher
Publication: CATS Newsletter
Pub Details: CATS v4 n9 (Volume 4, Issue 9)
Date: December 1986
Pages: 5

Or, Better Late Than Never

Well……. A long time ago, I ran an article on adding 80 column print capability to VU-CALC. Um…. Well….. Uhhh…. Well, there was an error in the listing, that kept it from printing any columns above #3. I had tested it, but only up to column 3. Oh well. A member told me of this, but I put it off to his bad typing. Well, I was wrong. The correct listing follows:

First, change the COPY in line 2000 to CLS: GOSUB 9600: CLS. Then add:

9600)POKE 23658,8:CLS :PRINT ''"80 Col. Printer Driver"
9610 INPUT "Start col: ";sc
9620 PRINT "Starting Col.= ";sc
9630 INPUT "End col: ";ec
9640 PRINT "Ending Col. = ";ec
9650 LET s=0: INPUT "Start row:";s$: LET s=CODE s$(LEN s$)-64+(26*(LEN s$=2))
9660 PRINT "Starting Row = ";s$
9670 LET e=0: INPUT "End row: ";e$: LET e=CODE e$(LEN e$)-64+(26*(LEN e$=2))
9680 PRINT "Ending Row = ";e$: POKE 23658,0
9690 REM ** Set up printer **
9700 REM Col headings
9710 LPRINT " ": DIM t$(8): FOR x=sc TO ec
9720 LET t$=" "+STR$ x: LPRINT t$;
9730 NEXT x: DIM t$(3)
9740 LPRINT
9750 LET base=34573+(s-1)*350
9760 FOR r=base TO base+(e-s)*350 STEP 350
9765 LET t$=s$: LPRINT t$;: LET S$(LEN S$)=CHR$ (CODE S$(LEN S$)+1): IF CODE S$=91 THEN LET S$="AA"
9770 FOR x=(sc-1)*7+r TO ec*7+r
9780 LPRINT CHR$ PEEK x;
9790 IF (x-34572)/7=INT ((x-34572)/7) THEN LPRINT " ";
9800 NEXT x
9810 LPRINT
9820 NEXT r
9830 RETURN

Specifically, line 9770 included the wrong limit. Sorry.

MF

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