IBM 5150 Manual To Operations page 70

Hide thumbs Also See for 5150:
Table of Contents

Advertisement

ASCII Codes for IBM 80 CPS Matrix Printer
To tell your new Printer how and what you would like to print, you
must first send special coded characters from the system Unit to your
Printer. These special characters are called ASCII control codes.
Below, you will see a few examples on how these are used.
r-...
On the following pages you will find the complete ASCII code charts
for control, character and symbols and graphic codes. You may
want to keep it handy for future reference.
EXAMPLES-For the BASIC programmer
1.
ASCII number 14 turns on double width mode.
*What to program: LPRINT CHR$(l4); "IBM Personal
Computer"
*What it will print:
I
at-I
Pe-r-SC:H""la.l.
CCllTlput.ar ­
2.
ASCII number 15 turns on compressed character mode.
*What to program: LPRINT CHR$(l5); "IBM Personal
Computer"
*What it will print:
18K Per••nal C ••putor
3.
ASCII number 69 (ASCII "E") followed by ASCII number 27
(ESC. Code)
*What to program: LPRINT CHR$(27)+CHR$(69); "IBM
Personal Computer"
*What it will print:
IBM Personal Computer
Printer 3-14

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents