Star Micronics Delta user manual NEW Lprint Testing RUN, New, NEW LPRINTCHR$7 RUN, CHR$ function

Models: Delta

1 110
Download 110 pages 20.25 Kb
Page 37
Image 37

Getting Started With Delta

25

Welcome back. Let’s try what we learned. Type the following:

L

NEW

i

18 LPRINT "TESTING"

RUN

Remember-we use LPRINT, you may have to use something

celse!

At any rate, you should have the word “TESTING” on your

iprinter. Quite an achievement, isn’t it? Let’s get done with this simple stuff so that we can go on to something interesting.

iThe CHR$ function

L

We mentioned CHR$ earlier as one way to express ASCII

codes. We are going to use it a lot in communicating with Delta.

 

L

Delta uses many of the ASCII codes that don’t represent letters

and numbers. The CHR$ function gives us an easy way to send

 

 

these codes to the printer. Try this to see how the CHR$ function

Lworks:

NEW

i18 LPRINTCHR$(68)

RUN

That should print a “D” for Delta. If you check the chart in I, .- Appendix I you will see that 68 is the ASCII code for “D”.

L Control codes

Delta uses many of the non-printing ASCII codes for control

icodes. These codes perform a function rather than printing a char- acter. Let’s try an easy one right now:

L

6 NEW

18LPRINTCHR$(7)

RUN

:

L

Who made that noise? That’s Delta’s bell. We will learn more

Page 37
Image 37
Star Micronics Delta user manual NEW Lprint Testing RUN, New, NEW LPRINTCHR$7 RUN, CHR$ function, Control codes