Star Micronics Delta User Manual
Star Micronics Delta User Manual

Star Micronics Delta User Manual

Star micronics printer user's manual

Advertisement

Quick Links

Delta User's Manual
1
i' :
THE PDWER BEHINDTHE PRINTED WORD.
_ _ __
NOT INTENDED FOR SALE

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics Delta

  • Page 1 Delta User’s Manual i’ : _ _ __ THE PDWER BEHINDTHE PRINTED WORD. NOT INTENDED FOR SALE...
  • Page 2 D.C., 20402, Stock No. 004~080-00345-4. A note about the programs in this manual: This manual contains several programs that help to demonstrate Delta printers. Star Micronics tional and accurate. However, Star Micronics ity to any particular application. Trademark Delta-lo, Delta-18 grafstar, UniversaUAtari...
  • Page 3 ‘L Your new Delta printer and this manual are both setting new standards for the computer printer industry - and you’re part of it! Congratulations, First, about this manual. It’s another first in our industry - the first to be truly written not just for the person who does his...
  • Page 4 We suggest that each new owner/user, before you even unpack the box, read or at least scan Chapters 1 and 2 - “A Closer Look” and “Getting Started with Delta” - as well as Appendix A, “Unpacking and Installation.”...
  • Page 5: Table Of Contents

    Adjusting the Gap Self-Test Getting Started With Delta Using Commercial Software First, some terminology Using Delta with SuperCalc Using Delta with word processors Using this book without learning BASIC Some Basics about BASIC Establishing communications The CHR$ function Control codes...
  • Page 6 A one-shot tab command Setting Left and Right Margins Using Vertical Tabs A one-shot vertical tab command Summary Special Features of the Delta Printer Chapter Now hear this Initializing Delta Putting Delta to sleep Printing to the bottom of the sheet...
  • Page 7 Specifying the graphics data Combining text and graphics Printing a Design or Logo Plotting with Delta How the program works Using Delta for business graphics High Resolution Graphics If You Have Problems wi:h BASIC Summary Getting It All Together Maintenance...
  • Page 8 Applesoft BASIC Listing programs Program listings Chart program Special character chart program Macro program Bridge hand program Numeral program Download utility program Delta plot program Pie chart program Appendix TRS-60 Computers Recommended TRSSO TRSSO BASIC Chart program Special character chart program...
  • Page 9 Table of Contents Program listings Chart program Special character chart program Macro program Bridge hand program Numeral program Download utility program Delta plot program Pie chart program Appendix Commodore Setting the switches Using Commodore Listing programs Program listings Chart program...
  • Page 10 ASCII Code Conversion Appendix Appendix Technical Appendix The Parallel Interface Functions of the Connector Signals Appendix Serial Interface Specifications Configuring the Serial Interface Delta’s Serial Protocols Serial busy protocols XONlXOFF protocol ACK protocol Index Consumer Response DIP Switch Quick Reference Warranty Command Quick Reference Delta User’s Manual...
  • Page 11 Dot graphics commands Table 8-2 IBM serial switch settings Table B-l DIP switch settings Table H-l International Table H-2 Delta parallel interface Table O-l Serial interface pin functions Table P-l DIP switch 3 Table P-2 Handshaking protocols Table P-3 Data transfer rates...
  • Page 12 Delta User’s Manual...
  • Page 13: Chapter 1 A Closer Look

    ‘L. In this chapter, we’ll introduce you to your Delta printer. We’ll cover: Components Paper selection and loading Adjusting the gap-for Self-test-print-out Components and Controls First, the components. unpacked your printer. Now we’ll give you a brief explanation of Chapter I...
  • Page 14 (For directions on how to set up Delta, see Appen- dix A.) Printer cover ‘igure l-l. For instructions on attaching Printer cover - protects ribbon and print head from dust and dirt - and also reduces the sound level.
  • Page 15 Cover , Control panel ‘igure 1-2. All of Delta’s controls are on the right side. h... Control panel - on top right corner. These three buttons and four “status” lamps are your day-to-day operational Here’s what they do: Power lamp - glows green when the power is on.
  • Page 16: Paper Selection And Loading

    Power cord - you know what it is for, don’t you? It furnishes the electrical power to run the printer. Paper Selection and Loading That’s it for components and connectors. The next thing we’ll look at is the variety of papers available for Delta, and how to load Delta User’s connectors.
  • Page 17: Loading Single Sheets

    A Closer Look them, ready to print. For starters, Delta can handle single sheets- whether standard-size less business forms, or almost any other kind of individual sheets. You can also print on continuous folded perforated paper. Here’s a good place to spend a minute talking about the release lever, which you’ll be using often.
  • Page 18 Press the ON LINE button until the ON LINE light goes off. 7. Press the L.F. button to roll the paper in until it appears on the front side of the platen, about where you want the first line to start printing. Delta User’s Manual with can be done “under power”...
  • Page 19: Loading Roll Paper

    Roll paper specs are the same for both Delta-10 and Delta-15 ” wide, .CV to .lO mm thickness, and maximum 5” diameter roll). Let’s start to load the Delta. It’s done almost the same way as loading single sheets, except that the “single sheet” in this case is quite long! 1.
  • Page 20 User’s Manual Delta igure l-6. The roll paper holder is attached to the back of Delta. Figure 1-7. Inserting roll paper into Delta is similar to loading single sheets.
  • Page 21: Loading Sprocket-Feed Paper

    “com- puter paper.” It can be as narrow as 3”, and up to 10” wide (5” to 15%” on Delta-15). To use this kind of paper, you’ll need to install the tractor unit, with its two “sprocket”...
  • Page 22 Figure 1-8. Replace the tractor unit by placing the hooks against the stoppers lower the front into place while holding the snap levers. Figure 1-9. Open the tractor covers to expose the sprocket teeth. Delta User’s Tractor cover Manual...
  • Page 23: Bottom Feeding Delta-15

    Delta-lo, or through a slot in the bottom. To load Delta-15 from the back, follow the steps shown in the previous section. But for loading through the bottom slot, you position the Delta-15 above the stack of fan-fold paper, with the paper being fed up through the bottom of the printer and on out the back.
  • Page 24 Figure l-11. The perforation To use Delta-15 this way, you’ll need to install the tractor unit, the paper separator, and the paper guide if you haven’t already. If you’re unsure how to do it, see Appendix A and Figure The steps for bottom loading Delta-15 1.
  • Page 25: Ribbon Installation

    Figure 13. Now we’re ready to roll - replace the printer cover, and turn on the power switch. Speedy printing! Figure 1-12. Delta-15 con be loaded from the bock like Delta-10 or from the bottom, OS shown here. Ribbon Installation Installing the ink ribbon with its two spools is described in detail in Appendix A.
  • Page 26: Self-Test

    Self-Test The “self-test” is a trial run of your beautiful new machine. Delta carries a built-in program that prints out sample lines of let- ters, numbers, and other characters-to thing’s in good working order. It also serves as a display of all the characters available in the Delta.
  • Page 27 Closer Look Best of all, you don’t have to wait another minute-you print the self-test without hooking up the Delta to your computer! It’s as simple as 1, 2, 3 . . . 1. Plug the printer’s power cord into a 120 VAC outlet.
  • Page 28 Delta User’s Manual...
  • Page 29: Getting Started With Delta

    Chapter 2 Getting Started With Delta You have assembled and tested your printer, and seen a quick sample of Delta’s capabilities in the self-test. Now it’s time to do what you bought Delta to do: print information from your com- puter.
  • Page 30: Using Commercial Software

    2-1. Delta has both serial and parallel interfaces. Using Commercial Many of you purchased Delta to use with commercial ware. You made a good choice because Delta is compatible with most commercial programs, from word processing programs to spreadsheet programs to accounting programs.
  • Page 31: First, Some Terminology

    With these questions answered, you are ready to start print- ing. Read the manual that came with your commercial software to see how to make it send information for Delta to print. This is ail you need to know to use Delta as a regular printer. But Delta isn’t just a regular printer.
  • Page 32 The reason that we are telling you all this about ASCII codes is that people are not very consistent ASCII codes. We are going to help you use Delta with commercial software, but we don’t know what its documentation call the various codes. So if you know all the different things that the codes might be called it will be easier to figure out what it is trying to tell you.
  • Page 33: Using Delta With Supercalc

    233 characters per line of con- densed type. One of the other options on this menu is “send setup codes to printer”. This is how we tell Delta that we want to use condensed print. The code to switch Delta into condensed print is ASCII 15, or control-O.
  • Page 34 They “know” that they won’t print anything, and so they “pro- tect” you by not letting you use them. But the non-printing codes are the ones that you need to use Delta’s features. So EasyWriter provides a way to override this protection. If you precede a spe- cial code with a “control-O”...
  • Page 35: Using This Book Without Learning Basic

    But it’s not the only way to communicate Delta, as we have already seen. Even if you don’t know BASIC, you can learn how to use Delta’s features by reading on. When...
  • Page 36: Establishing Communications

    LLIST it (or however your computer does it). We’ve crossed the first major hurdle-learning grams on Delta. Now we are ready to jump into the world of pro- gramming with Delta. But first, there are a few fundamentals that we need to cover.
  • Page 37: The Chr$ Function

    Try this to see how the CHR$ function works: 18 LPRINT CHR$(68) That should print a “D” for Delta. If you check the chart in Appendix I you will see that 68 is the ASCII code for “D”. Control codes Delta uses many of the non-printing ASCII codes for control codes.
  • Page 38: The Escape Code

    There’s one particular ASCII code that we are going to be using more than all the rest. This is ASCII 27, which is called escape. In BASIC it’s CHR$(27). With all of Delta’s advanced fea- tures, there weren’t enough single ASCII codes to go around. So escape is used to start sequences wider range of functions to us.
  • Page 39: Some Problem Codes

    Getting Started With Delta our program looks like this: ESC$=CHR$(27) l@ LPRINT ESC$ Turn your printer off and back on now, or you will be printing \..- in italic for quite a while! Some problem codes Before we go too far we need to mention some codes that may cause you problems.
  • Page 40 Delta User’s Manual...
  • Page 41: Printing Text With Delta

    Printing Text With Delta Beginning with this chapter we will be exploring all the fea- tures of Delta. All our examples will be given in Microsoft BASIC as used by the IBM Personal Computer, but remember that you don’t need to know BASIC to use Delta’s features. Just use the same ASCII codes as we do in our examples.
  • Page 42: Changing The Print Pitch

    Delta prints characters because it’s the same spacing as a standard pica typewriter. Delta can also print 12 characters per inch. This is called elite pitch because it is the same spacing as an elite typewriter. Condensed print is approximately (actually it’s 17.14 characters...
  • Page 43: Expanded Print

    Line 10 turns on elite pitch with ( ESC > “B” CHR$(2). Line 20 prints a line at line changes Delta to condensed pitch and line 40 prints a line in condensed pitch. Line 50 resets Delta to pica pitch and line prints a line in pica pitch. Pica pitch and condensed ‘L codes.
  • Page 44: Making Delta Print Darker

    Delta has very good print density when it’s just printing regu- larly. But sometimes you may want something to stand out from the rest of the page. Delta provides two ways to do this: double- strike and emphasized print. Both of these go over the characters Delta User’s Manual...
  • Page 45: Table 3-3 Print Emphasis Commands

    Line 50 then turns dou- ble-strike back on so that line line turns both off, so that Delta is set for normal printing. Look closely at the different lines of printing. In the line of double-strike printing each character has been printed twice, and...
  • Page 46: Some Special Kinds Of Text

    In emphasized printing, they are moved slightly to the right the second time Delta prints. The last line combined both of these so that each character was printed 4 times. Now that’s pretty nice printing, isn’t it? Some Special Kinds of Text We’re just getting started on the kinds of text that Delta can...
  • Page 47: Superscripts And Subscripts

    30 turns it off with (ESC) UnderJining Not only can Delta print all the styles of printing that we have seen in both roman and italic, but it can underline them too. The control codes are shown in Table 3-5.
  • Page 48: Mixing Modes

    80. Again, everything prints on one line because of the semicolons. Mixing modes We have learned how to use Delta’s many different printing modes individually. Now let’s see how we can combine these Delta User’s Manual...
  • Page 49 Printing Text With Delta modes for even more printing effects. Condensed, italic, double- strike, underlined subscripts are something that you are probably just itching to print! There are 288 “theoretical” we have learned. Of these, a mere 112 will work! (Some combina- tions, like expanded superscripts, just don’t work.) Instead of try-...
  • Page 50 ,,ll,1llrl,11,l,l11l1ll,l1l,1l1l11r11,1,1fl 3000 3010 ' PRINT FOUR LINES 3020 ' 3030 ' ,111,l,,,,,,,ll,,,1!1~1111,1111,1l1111f1111 3040 Delta User’s Manual PRINT ~~~~~Ill,llllllllllIt = CHR$(27) + CHR$(69) = CHR$(27) + CHR$(45) + = CHR$(27) + CHR$(83) + = CHR$(27) + CHR$(84) ENLARGED lr " ELITE "...
  • Page 51 Printing Text With Delta 3050 ITALICS 3060 UNDERLINED = FALSE NOT.UNDERLINED$; 3070 ENLARGED = FALSE 3080 PICA 3090 IIIIII~~~II~~~RINT 3100 LPRINT CONDENSED$; 3110 GOSUB 3500 'PRINT AS REQUIRED 3120 LPRINT ELITE$; 3130 GOSUB 3140 LPRINT PICA$; :PICA = TRUE 3150 GOSUB 3500 'PRINT AS REQUIRED 3160 '~~"""SEE...
  • Page 52 ..ABcd .,,. I”’ Summary Control code (ESC) “B” CHR$(l) (ESC) “B” CHR$(2) (ES0 “B” CHR$(3) CHR$(18) Delta User’s Manual ENL-eRGED CONDENSED ELITE ABcd CIRcd ABcd FIEcd ..I. m--m ..I. m--w ..m.m ..
  • Page 53 Printing Text With Delta CHR$(15) CHR$(14) (ESC) CHR$(14) (ESC) “W” CHR$(l) (ESC) “W” CHR$(O) (ESC) “G” ( ESC) “H” (ESC) “E” (ESC) “F” (ESC) “4” (ESC) “5” (ESC) “ - ” CHR$(l) (ESC) “ - ” CHR$(O) (ESC) “S” CHR$(O) (ESC) “S”...
  • Page 54 Delta User’s Manual...
  • Page 55: Chapter 4 Line Spacing And Forms Control

    Line Spacing and Forms Control We have learned how to print in many different ways, but so far we haven’t looked at how to position the printing on the page. In this chapter we will learn how to change the vertical spacing and the length of the page.
  • Page 56 BASIC add a line feed (CHR$(lO)) to every carriage (CHR$(13)) that they send. If your version of BASIC doesn’t do this, then you should turn DIP switch 2-4 on so that Delta will add the line feed for you. When you have DIP switch 2-4 on the printer will do the same thing when it receives a carriage return as it does when it receives a line feed.
  • Page 57 Line Spacing and Forms Control This is what you will get: DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA DELTA Line 30 changes the line spacing. The command CHR$(n) changes the line spacing to n/72 of an inch. The loop that is started in line 10 increases the value of n (the variable I in the program) each time it is executed.
  • Page 58: Table 4-L Line Spacing Commands

    Set line spacing to inch One-time line feed of n/144 inch Let’s take a look at the last command in the table, which gives a one-time line feed of n/144 inch. The (ESC) “J” CHR$(n) com- Delta User’s Manual VAKIAPLE LINE SPACING VAF:IAELE...
  • Page 59 Try this program to see how it works: 18 LPRINT "LINE NUMBER 1" 2g LPRINT "LINE NUMBER 2"; LPRINT CHR$(27) "J" CHR$(l@d); LPRINT "LINE NUMBER LPRINT "LINE NUMBER Here is what Delta will produce: LINE NUMBER LINE NUMbER LINE NUMBER...
  • Page 60 Forms Controls We have seen how to control the spacing between lines on a page. Delta also has commands printing on the page, and even adjust for different size pages. Form feed The simplest forms control code is the form feed. Form feed is CHIQ(12) and causes the printer to move the paper to the top of the next sheet.
  • Page 61: Table 4-2 Form Length Commands

    You may have some computer forms that you wish to use with Delta that are not 11 inches high. That’s no problem, because you can tell Delta how high the forms are that you are using. There are two commands...
  • Page 62: Table 4-3 Top And Bottom Margin Commands

    And if you separate the pages then you are really in trouble. Of course Delta has a solution to this predicament. keep track of the position on the page, and advance the paper so that you won’t print too near the perforation.
  • Page 63 Line Spacing and Forms Control In both cases the value of n tells Delta how many lines to skip, although there is a slight difference in the usage. When you set the top margin with (ESC) “R” CHR$(n), the value of n tells Delta what line to start printing on.
  • Page 64 (ESC) “A” CHR$(n) (ESC) “3” CHR$(n) ( ESC > “0” (ESC) “1” (ESC) “2” (ESC > “J” CHR$(n) (ESC) “a” CHR$(n) Delta User’s Manual Function feed Line Carriage return Set line spacing to n/72 inch Set line spacing to n/144 inch...
  • Page 65 Line Spacing and Forms Control CHR$(12) (ESC) “C” CHR$(n) (ESC) “C” CHR$(O) CHR$(n) (ESC) “R” CHR$(n) I I - (ESC) “N” CHR$(n) ESC) “0” Form feed Set page length to n lines Set page length to n inches Set top margin; start printing on line n Set bottom margin;...
  • Page 66 Delta User’s Manual...
  • Page 67 You have probably used the tab and margin features on a type- writer. They make it easier to format the text on a page. Delta also has tabs and margins that you can set. But it goes beyond the capa-...
  • Page 68 This is fine if the computer and the printer have the same tab settings, but it doesn’t allow us to use our own tab settings on Delta. We can “outsmart” ASCII value that we use. Instead of using CHR$(S), use CHR$(137) for a tab command.
  • Page 69: Table 5-1 Left And Right Margin Commands

    It has the same effect as sending n spaces to the printer. Setting Lefl and Right Margins Delta’s left and right margins work just like a typewriter- once they are set all the printing is done between them. The com-...
  • Page 70 This means that you should set a left margin of 1 and a right margin of 80 on Delta-10 or 136 on Delta-15. If you change the pitch of your printing after you set your margins, the margins will not change.
  • Page 71 Now when you run the program the first page looks just like before, but line 60 sends one more (VT) than there are tabs. This doesn’t confuse Delta-it tion which happens to be the first tab position on the next page.
  • Page 72 (ESC) “b” n (ESC) “M” n (ESC) “N” n CHR$(ll) (ESC) “P” nl n2 n3 . . . CHR$(O) Set vertical tabs (ESC) “a” n Delta User’s Manual It is (ESC) “a” CHR$(n), Function Horizontal tab One-time horizontal tab of n...
  • Page 73 In this chapter we will look at more con- trol codes. These codes don’t fit neatly into any of the groupings that we have studied, but they add a lot of capability to Delta. So here goes.
  • Page 74: Table 6-1 Bell Commands

    LPRINT CHR$(7); There are two other codes that affect the bell. One disables the bell, so that Delta will ignore a CHR$(7), and the other turns the bell back on. All three codes that affect the bell are shown in the following table.
  • Page 75: Table 6-2 Some Miscellaneous Commands

    Putting Delta to sleep You know how to put Delta off-line with the ON LINE button so that you can use the FF and LF buttons. Delta has another off- line state that can be controlled from your computer. When you turn Delta offline from your computer, Delta will ignore anything that you send it, except for the code to go on-line again.
  • Page 76: Table 6-3 Printing Direction

    100 LPRINT CHR$(12) CHR$(27) '9'; Here is what you will get. The top line is printed bidirec- tionally, and the bottom is printed unidirectionally. to look hard because there isn’t much difference. Delta User’s Manual Table Control code CHR$(l) (ESC) “U”...
  • Page 77 Finally line 100 sends a form feed to advance the paper to the top of a new page, and then uses the master reset to restore Delta to the power-on condition. Backspace...
  • Page 78: Table 6-4 Eighth Bit Controls

    “as is” from t a e computer Block graphics characters Besides the upper and lower case letters and symbols that we are by now familiar with, Delta has a whole different set of charac- ters that are for special uses. These characters graphics characters...
  • Page 79 Special Features LPRINT I II= 11 CHR$(I) CHR$(9); NEXT I : LPRINT : NEXT J Figure shows what this program will print. If your chart doesn’t look like this because it has regular letters and numbers instead of the special symbols, then your computer is only using seven bits (unless you have set DIP switch 2-3 on by mistake).
  • Page 80: Table 6-5 International Character Set Commands

    International character sets Delta is a multi-lingual printer for it can speak in eight lan- guages! Delta changes languages by changing are different for the different languages. These sets of characters are called international character sets. The control codes to select the international character sets are given in the following table.
  • Page 81: Table 6-6 International Character Sets

    In computer programming tions (which are similar to subroutines) save programmers a lot of time and effort. Delta’s macro can save you a lot of time and effort also. Here is how Delta’s macro works. You define your macro by telling Delta what normal control codes are to be included in the macro.
  • Page 82 In the next chapter we will make up for this diversity-the mands! But they are some of the most powerful that Delta offers. They give you the ability to create your own characters. Delta User’s Manual...
  • Page 83 I j i . . Special Features Summary Control code i \.. CHRW (ESC) “Y” CHR$(O) (ESC) “Y” CHR$(l) ( ESC) “@” CHR$(lS) f A, CHR$(17) (ESC) “8” (ESC) “9” (ESC) “U” CHR$(l) I L. (ESC) “U” CHR$(O) CHRW) CHR$(127) j L”...
  • Page 84 Delta User’s Manual...
  • Page 85 Chapter 6, you can print almost any character you can think of. But if “almost any character” isn’t good enough for you, then it’s a good thing you have a Delta printer! With it you can actually create your own characters.
  • Page 86 “dot matrix” because each character dots. Look closely at some printed characters Delta and vou will see the dots. Figure 7-l shows how the letter “A” is formed by printing 17 dots. - Figure 7-1. The letter “A” is created The printhead in Delta consists of nine thin wires stacked one atop the other.
  • Page 87 Delta. When download characters are defined they are stored in RAM (random access memory), which allows you to define or modify them at any time. Each of these characters, whether it is from the standard charac- ter ROM or in download RAM, is constructed on a grid which is six “boxes”...
  • Page 88 Figure 7-3: it’s only seven boxes high. Which leads us to. . . Rule I: Download characters As you noticed in Figure 7-2, capital letters, most lowercase Delta User’s Manual n, = Descender Width n2 = Descender...
  • Page 89 One bit in the download character used to tell Delta whether a character is to be treated as a descen- der or not. We’ll get to the command in due time. For now, if your character uses the top seven dots, write in a zero next to the word “Descender”...
  • Page 90 To avoid this inefficiency, define a character like Figure 7-6. (Actually, you can define it, but when it prints, Delta will leave out the overlapping dots, so that it would print like Figure 7-5.) m, m, m, m, m5 m, m, m, nww-h, Total Figure 7-6.
  • Page 91 Creating Your Own Characters 0 - 32 Figure 7-7. By adding the values of each description for any combination of dots. answers!). Across the top of the grid you’ve probably noticed the cryptic labeling of each column: ml, m2, m3, etc. These labels correspond to the labels in the command syntax statement, which we’ll get to shortly.
  • Page 92 You’ve read through a long explanation of download charac- ters and we haven’t even told you the command syntax yet! Now the wait is over. This is the most complex command in the Delta repertoire and now you’ve got the necessary knowledge to imple- ment it.
  • Page 93 Creatinn Your Own Characters 7-9. Character designs for the four card suits. Figure Like the other Delta commands, (CHR$(27)). The next character CHR$(42), followed by a CHR$(l). nl is the value we assign to the character-in heart it is CHR$(72).
  • Page 94 2@ LPRINT CHR$(27) "*" CHR$(l); 39 READ Nl,N2 4p LPRINT CHR$(Nl) CHR$(N2); 5pI FOR M=l TO 11 69 READ Ml 70 LPRINT CHR$(Ml); NEXT M NEXT Delta User’s Manual CHR$(4) CHR$(4) our heart character to the JJelta to send to the printer. The following...
  • Page 95 (type LPRINT “HCDS”) you don’t get a heart, club, diamond and spade. Instead you get. . . HCDS. That’s because the download characters are stored in a different part of Delta’s memory. To tell it to look in download character RAM instead of standard charac-...
  • Page 96 With that in mind, add this line to the program we used to send the characters to Delta: 5 LPRINT CHR$(27) Ir*" CHR$(g) Now try the download results should look like Figure 7-12.
  • Page 97 C, D, H, and S have been changed. To demonstrate character set to print a typical bridge hand. This program will do just that: 10 'Program to deal bridge hands and print on Delta GOSUB 1000 30 GOSUB 2000 40 GOSUB 3000...
  • Page 98 "EAST" 4100 LPRINT CHR$(27) "$" CHR$(l) CHR$(27) CHR$(70) 4110 FOR SUIT = 0 TO 3 4120 HAND = 2 4130 GOSUB 4300 4140 LPRINT CHR$(9) CHR$(9); 4150 HAND = 3 4160 GOSUB 4300 Delta User’s Manual 'to the printer 'Macro...
  • Page 99 Creating Your Own Characters 4170 LPRINT 4180 NEXT SUIT 4190 LPRINT CHR$(27) "!" CHR$(9) "SOUTH" 42jap; LPRINT CHR$(27) "$!I CHR$(l) CHR$(27) CHR$(70); 4210 HAND = 4 4220 FOR SUIT = 0 TO 3 4230 LPRINT CHR$(9); 4240 GOSUB 4300 4250 LPRINT 4260 NEXT SUIT 4270 LPRINT CHR$(27) "$"...
  • Page 100: Table 7-L Download Character Definition Commands

    Define download character Copy ROM to download RAM Proportkmal Characters Up until now, all the characters that your Delta has printed have been of a fixed width-either enlarged mode) characters per inch. Whichever pitch you select, all the characters are the same width. You’ll notice though, that in typeset books, such as this one, each character different width.
  • Page 101 Creating Your Characters igure Y-14. These download 100 FOR I = 1 TO 11 llg READ BITS 12@ LPRINT CHR$(BITS) ; 138 NEXT I 14@ GOT0 68 15@ LPRINT ' 155 LPRINT 16@ LPRINT "Standard characters without proportional spacing" 17g LPRINT 175 LPRINT 18g LPRINT CHR$(27) "$"...
  • Page 102 You must, however, (even if it is 0) for those Delta expects eleven characters nl n2 sequence. In most cases, the width you select should actually be one dot wider than the number occupies.
  • Page 103: Table 7-2 Download Character Printing Commands

    Creating Your Own Characters Hi ssi Standard characters Mississippi Download characters Download characters Figure This printout shows 7-15. characters, in both normal and proportional Download character Function Normal download characters Normal download characters Proportional download characters Proportional download characters Connecting characters As we noted earlier,...
  • Page 104 160 NEXT Nl 170 ' 180 ASCII = 160 190 FOR NUM = 0 TO 9 200 NUMERAL.TOP$(NUM) = CHR$(ASCII + 0) + CHR$(ASCII + 1) Delta 0J Jour mcllvldual characters. '4 ASCII CHARS/NUMERAL 'START OF DOWN CHARACTERS 'NUMERALS 0 THRU 9 User’s...
  • Page 105 Creating Your Own Characters 210 NUMERAL.BOT$(NUM) = CHR$(ASCII + 2) + CHR$(ASCII + 3) 220 ASCII = ASCII + 4 230 NEXT NUM 240 BLANK$ = CHR$(200) 250 LPRINT DOWN.CHAR.PROP$; LINE.7$ 260 FOR NUM = 0 TO 9 270 LPRINT NUMERAL.TOP$(NUM);BLANK$; 280 NEXT NUM 290 LPRINT 300 FOR NUM = 0 TO 9...
  • Page 106 Characters It’s possible to get even more printing download characters with the various Delta. Most of the commands with normal width download acters. A few of them will work with proportional acters as well. Table 7-3 summarizes their compatibility with download Delta User’s Manual...
  • Page 107 But this is a good computer Design (CAD) for download and edit characters (no erasing!) makes the necessary to Delta. I+J :J=J+2:PRINT modes Proportional (Escape become And even the applica- characters. until it’s the way...
  • Page 108 400 GOSUB 950:RETURN 410 GOSUB 920:Y=Y+3:H=H+l:IF Y)31 THEN BEEP:Y=31:H=ll 420 GOSUB 950:RETURN 430 GOSUB 920:X=X+2:G=G+l:IF X)13 THEN BEEP:X=13:G=7 440 GOSUB 950:RETURN 450 GOSUB 920:X=X-2:G=G-l:IF X(1 THEN BEEP:X=l:G=l 460 GOSUB 950:RETURN 470 IF Z(G,H-l)=l OR Z(G,H+l)=l THEN BEEP:RETURN Delta User’s Manual...
  • Page 109 Creating Your Own 480 Z(G,H)=l:COLOR 31,l:LOCATE X+4,Y+l@:PRINT SC$;:COLOR 7,g:RETURN 490 Z(G,H)=@:COLOR 7,g:LOCATE X+4,Y+l@:PRINT CS$;:COLOR 7,g:RETURN 500 REM,**** GET OUT OF EDIT MODE **** 510 FOR I=2 TO 10:LOCATE 1,55:PRINT STRING$(20,32);:NEXT I 520 IF Z(G,H)=l THEN LOCATE X+4,Y+@:COLOR 7,g:PRINT i i- SC$;:GOTO 540 530 IF Z(G,H)=@ THEN LOCATE X+4,Y+l0:COLOR 7,g:PRINT 'I '1 .
  • Page 110 . . . ml1 (ESC) I‘*” CHR$(O) (ESC) (ESC) “X” CHR$(l) (ESC) “X” CHR$(O) (ESC) “$” CHR$(l) (ESC) “$” CHR$(O) Delta Function Defines download character Copies fonts in ROM Selects the download character uses proportional spacing Cancels...

Table of Contents