Star Micronics Delta user manual Lprintsuit$Suit

Page 99

Creating Your Own Characters

a7

4170 LPRINT

4180 NEXT SUIT

4190 LPRINTCHR$(27)"!" CHR$(9)"SOUTH" 42jap;LPRINTCHR$(27)"$!ICHR$(l)CHR$(27)CHR$(70); 4210 HAND = 4

4220 FOR SUIT = 0 TO 3

4230 LPRINTCHR$(9);

4240 GOSUB 4300

4250 LPRINT

4260 NEXT SUIT

4270 LPRINTCHR$(27)"$" CHR$(@)CHR$(27)CHR$(70) 4280 RETURN

4290 'Printone line

4300 LPRINTSUIT$(SUIT);

4310 FOR CARD = 13 TO 1 STEP -1

4320 IF DECK(SUIT*13+CARD)=HANDTHEN LPRINT CARD$(CARD);

4330 NEXT CARD

4340 RETURN

Note that we didn’t have to re-enter the download characters, since they were already sent to the printer with the previous pro- gram. They will stay with the printer until you download new characters to replace them or turn the printer off. Even the (ESC) “@I”command, which initializes the printer, does not destroy the contents of download RAM.

Figure 7-13. The card program shuffles, deals, and prints out a bridge hand.

Image 99
Contents Delta User’s Manual @Copyright 1983 Star Micronics, Inc Special Message to the New Owner Delta User’s Manual Table of Contents Special Features Delta Printer Formatting Your OutputCreating Your Own Characters Getting It All Together Maintenance Appendix D TRS-60 Computers Appendix E Osborne, Kaypro and CP/M ComputersAppendix F Atari 400/800 Computers Appendix Appendix DIP Switch SettingsAppendix Character Style Charts Appendix Commodore VIC-20 ComputersSerial busy protocols XONlXOFF Protocol ACK protocol Index Consumer Response 309 DIP Switch Quick ReferenceWarranty Inside Back Cover Command Quick Reference Delta User’s ManualTables Xii Delta User’s Manual Closer Look Roll paper holder and holder shaft used only with roll Paper separator and paper guide used with roll paperPage Paper Selection and Loading Parallel interface connector the place where you hookLoading single sheets Delta User’s Manual Loading roll paper Delta User’s Manual Loading sprocket-feed paper Closer LookOpen the tractor covers to expose the sprocket teeth Figure I-10.Delta ready to run with sprocket-feed paper Bottom feeding Delta-15Delta User’s Manual Ribbon Installation Self-Test Closer Look Delta User’s Manual Getting Started With Delta Using Commercial Sojtware First, some terminology Getting Started With DeltaAscii Using Delta with word processors Using Delta with SuperCalcPage Getting Started With Delta Using this book without learning BasicList OPEN4,4 CMD4 List PRINT#4 CLOSE4Establishing communications CHR$ function NEW Lprint Testing RUNNEW NEW LPRINTCHR$7 RUNEscape Code NEW LPRINTCHR$27CHR$52 2$3LPRINT Testing RUNESC$=CHR$27 l@ LPRINTESC$ Some problem codesDelta User’s Manual Chapter Printing Text With DeltaLprint NOW WE are Back to Pica Pitch Printing Print pitch Commands@ Lprint this is Elite Pitch Printing Lprint Condensedis the NarrowestpitchH153 LPRINTCHR$27W CHR$@NOW Were Back to NormalExpanded print I sMaking Delta print darker Print CommandsLPRINTCHR$14EXPANDEDELITE Pitch Lprint NOW WE are Back to Unexpandedpica PrintingLprint this is DOUBLE-STRIKEPRINTING Print EmDhasis a CommandsItalic printing Italic CommandsSuperscripts and subscripts UnderJiningSuperscript Subscript commands NEW Lprint Thisline UsesMixing modes Build Instructionset Return LPRINTRESET.ALL$Lprintelites Elite LPRINTPICA$ Pica LPRINTRESET.ALL$ Return REGULAR.HEADING$= STRING$27,*+ RegularIf ENLARGED= True then Lprint Italics = False LPRINTROMAN$Repeatwith Italics If Pica = False then LPRINTFOUR.DOT$ GOTO3590Control Code Function Here is the chart it producesPage Delta User’s Manual Line Spacing and Forms Control Changing Line Spacing This is what you will get Run the program again. Now the results will look like this Line spacing CommandsMoving down the page without a carriage return NEW Lprint LinenumberForm feed Forms ControlsChanging the Page Length Form length commandsLprint PAY to the Order Top and bottom margin commandsLineSpacingandFormsControl51 Control code SummaryESC Delta User’s Manual Formatting Your Output NEW Lprint ONECHR$9TWOCHR$9THREE CHR$9 Four Left and right margin commands One-shot tab command13@ Lprint Return 5B ENDLPRINTCHR$27P CHR$l@ CHR$Z@CHR$@ Control Code Function One-shot vertical tab commandNow hear this LChapterInitializing Delta Bell commandsUnidirectional printing Some Miscellaneous commandsPutting Delta to sleep Printing to the bottom of the sheetLprint Lprint NextPrinting Direction Backspace and delete NEW Lprint Backspacedoes notLprint I===WORK Lprint Deletedoes not Lprint WorkEighth Bit controls Block graphics characters and special symbols3pl Lprint I II=11CHR$ICHR$9 4pI Next I Lprint Next J International Character set commands International character setsMacro control code Macro instruction Commands END Macro StartdefinitionMacro Lprint CHR$18 Pica OFF RegularprintControl code Function Bell Disable bell Enable bell Reset Off-lineOn-lineDelta User’s Manual Creating Your Own Characters Dot Matrix Printing 000 0 eeeS&fee Rule I Download characters are seven dots high Defining Your Own CharactersRule 2 Dots cannot overlap Add up each column of dots 8WRONGCreating YourOwn Characters Assigning a value to your character Download character definition commandCharacter designs for the four card suits Figure Y-10. The attribute byte n2 for our heart character Next MPrinting Download Characters LPRINTCHR$27CHR$36CHR$@ DEFINTA-Z DECKCARD=X Next Card Return Read X LPRINTCHR$XNext J Next Lprint ReturnLPRINTSUIT$SUIT Proportkmal Characters Download Character dejfinition commands12@ Lprint CHR$BITS 138 Next Only Difference Is the way They Are Accessed Creating Your Own Characters Lprint DEF.DOWN.CHAR$ NUMERAL.BOT$NUM= CHR$ASCII+ 2 + CHR$ASCII+ Mixing Print Modes with Download Characters Utility Program Gosub 950RETURN Gosub 660 Return REM **** Display Menu for Edit Mode Summary