How the program works

Thisprogrambeginsbyassigningnumberofprintercommands toBASIC

stringvariables(lines1000to1100)You. canfindmostofthesecommands

nearthebeginningofchapter4.

TheWIDTH“LPT1:”255 statementin line 1120meansinfiniteline width. It preventsthe IBM-PCfrom insertingunwantedcarriagereturnsand line feedsin graphicsdata.

Actualprintingbeginsin line 1130.Usingthe preassignedcommands,the programprints samplesof its differentfonts, followedby samplesof the print pitches,then somedoubleand quadruple-sizedprinting.

Next comes thecentralattractionof theprogram:a lineoftextprinted

fourteentimesinexpandingandcontractingloopstogiveabarreleffectThe. workisdonebyfourprintercommands:acommand settingtherightmargin (line1450);acenteringcommand (line1470);a command tovarytheline spacing(lines1490and 1540);and a command tomicro-adjustthespace betweencharactem(lines1500and 1550).

Nexttheprogramreturnstonormalspacingandgivesademonstrationofthe printer’sword-processingabilities:italicprinting,boldprinting,underlin- ing,subscripts,etc.

The row of telephonesymbolsin the next printedline is createdby down- loading two new character patterns, which are printed in place of the character“<” (character60). Detailscan be foundin Chapter5.

Thefinalpartoftheprogramusesdotgraphicstoprintan“M&W”logo.The dotpatternofthelogowasoriginallylaidouton graphpaper,thenconverted to the datain lines 3180to 4640 withthe help of a calculator.Eachnumber representseightverticaldots. (See “Graphicscommands”in Chapter4 for details.)

The patternis printedin three rows,each row is twenty-fourdotshigh and 240 dots wide.Line 2040setsthe line spacingto 8/60inch so thatthe rows will connectvertically.The loop in lines 2050to 2130 doesthe printingin three passesof the print head.

108

Page 117
Image 117
Star Micronics LC24-200 user manual How the program works