Star Micronics LC-15 Printer User Manual


 
How theprogramworks
Thisprogrambeginsbyassigninganumberofprintercommandsto BASIC
stringvariables(lines1000to 1090).Youcanfindmostofthesecommands
nearthebeginningof chapter4.
TheWIDTH“LPT1:”255statementinline 1110meansinfhite linewidth.
It preventsthe IBM-PCfrominsertingunwantedcarriagereturnsandline
feedsin graphicsdata.
Actualprintingbeginsinline 1120.Usingthepreassignedcommands,the
programprintssamplesofitsdifferentfontstyles,includingalineshowing
all styles in italics, followedby samplesof the print pitches,then some
doubleandquadruple-sizedprinting.
Next comes the centralattractionof the program: a line of text printed
fourteentimesinexpandingandcontractingloopstogiveabarreleffect.The
workisdonebyfourprintercommands:acommandsettingtherightmargin
(line1400);a centeringcommand(line1420);a commandto varythe line
spacing(lines 1440and 1490);and a commandto micro-adjustthe space
betweencharacters(lines 1450and 1500).
Nexttheprogramreturnstonormalspacingandgivesademonstrationofthe
printer’sword-processingabilities:bold printing,underlining,subscripts,
etc.
The rowof automobilesin thenextprintedlineis createdby downloading
twonewcharacterpatterns,whichareprintedin placeof thecharacter“<”
(character60).Detailscanbe foundin Chapter5.
The finalpartof the programusesdotgraphicsto printsome“SW”logos
withvariousdensities.Thedotpatternofthelogowasoriginallylaidouton
graphpaper,thenconvertedtothedatain lines2370to 2600withthehelp
of a calculator.Eachnumberrepresentseightverticaldots.(See“Graphics
commands”in Chapter4 for details.)
Thepatternisprintedin fourrows,eacheightdotshighand65 dotswide.
Lines 1800to 1850read the dot data into a string array variablenamed
LOGO$.Line 1860setstheline spacingto 8f12inchso thattherowswill
connectvertically.Theloopinlines 1870to 1960doestheprintingin four
passesoftheprinthead.
86