A set of short knitting programs. GAUGE asks how many centimeters a swatch of 40 stitches by 60 rows measures and reports stitches and rows per inch. GAUGECHART prints a table of swatch widths from 10 to 22 cm with the inch equivalent and the stitch and row gauge for each. PTRNBACK draws the outline of a sweater back with PLOT and DRAW, including curved armholes. Two display pieces complete the tape: FLOWERS builds a potted flower from user-defined graphics, and THEANSWER flashes a block-letter message through four color schemes.
The loader screen reads “* CONTEST ENTRY * By DOROTHEA BUNDY” with an address in Ventura, California. It was an entry in the SyncWare News programming contest, whose results appeared in SyncWare News volume 3, number 4 (March–April 1986).
Program Analysis
Program Structure
The tape holds six separate BASIC programs, each saved with LINE 0 so that it runs when loaded:
CONTEST: a title screen in several ink colors with a flashing LOADING prompt, which then loadsGAUGECHARTGAUGECHART: aFORloop that steps the swatch widthCMby 0.1 and printsCM*0.4inches,40/CM*2.54stitches and60/CM*2.54rows per inchGAUGE: twoINPUTs and the same formulas, rounded to two decimal placesPTRNBACK: a closed outline of sevenDRAWsegments, with arcs of.4*PIfor the armholesFLOWERS: defines 20 UDGs (A–T) fromDATAand prints 17 of them in a picture four rows high and five characters wideTHEANSWER: draws the message in eight rows of solid and blank block graphics, cycling white, magenta, blue and green paper five times each
Notable Techniques
- In THEANSWER the letters are formed by the gaps left between solid blocks, and spell JESUS.
- FLOWERS uses
POKE USR "A"+x,nin a separate loop for each UDG. - The loader prints each part of the address in a different ink color in one
PRINTstatement, using embeddedAT,INK,PAPERandFLASHitems.
Potential Issues
- Only
CONTESTloads another program; the other four have to be loaded by hand afterGAUGECHART. GAUGECHARTrounds with+0.05instead of+0.5, so its figures are effectively truncated, and its 121 lines of output stop at thescroll?prompt. The loop variableCis never used.- In
PTRNBACK, the first line readsDRAW 50,0*.3*PI. That evaluates to a straightDRAW 50,0and may be a typo forDRAW 50,0,.3*PI. FLOWERSopens aFOR X=2 TO 16loop that has noNEXT, so the picture is printed only once. UDGs A, D, E, S and T are defined as blank.THEANSWERsetsFLASH 1in its first color pass and never clears it.
Source Code
300 CLS : PRINT TAB 6;"STITCH AND ROW GAUGE": PRINT
310 PRINT TAB 2;" OUR STITCH AND ROW GAUGE IS";TAB 6;"BASED ON A SWATCH OF";TAB 4;" 40 STITCHES BY 60 ROWS": PRINT
320 REM 40 STITCHES/C * 2.54=STITCHES PER 1"
325 REM 60 ROWS/CM * 2.54=ROWS PER 1"
330 PRINT "40 STITCHES MEASURES HOW MANY CENTIMETERS?"
340 INPUT C: PRINT C: PRINT
350 PRINT "60 ROWS MEASURES HOW MANY CENTIMETERS?"
360 INPUT CM: PRINT CM: PRINT
370 LET ST=40/C*2.54: LET R=60/CM*2.54
380 PRINT TAB 2;"STS PER INCH","ROWS PER INCH": PRINT
390 PRINT TAB 6;INT (ST*100+0.5)/100,TAB 21;INT (R*100+0.5)/100
8999 STOP
9000 SAVE "GAUGE" LINE 0Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
