Commodore VIC-20 Programmer's Reference Manual page 254

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

PRINTING IN DIRECT MODE
You can use your printer like a typewriter by printing in the DIRECT
MODE. In this mode, the printer prints everything between the
quotation marks including graphics and reversed characters.
Here's a sample of how it's done:
SAMPLE PROGRAM
13 OTTRI36,162.153,193,182,162
20 F0RIMT06
,
39 RERDR
— 40 fi*»R*+CHR$<R>
_j
58 NEXT
J 60 0PEN4,4
-2 70 F0RI-1T04
-Jj 80 PRlNT»4,CHR»<B>fl*J
90 PRINT»4,CHR*<13>" COMMODORE"
-^ 100 NEXT
YOU TYPE:
After typing RUN, you get this result:
0 COMMODORE
C COMMODORE
C COMMODORE
C COMMODORE
SCREEN DISPLAYS: PRINTER
PRINTS:
OPEN4.4
CMD4
PRINT#4, "HELLO,
LOVE
CLOSE4
OPEN4.4
READY.
No Response.
PR!NT#4, "HELLO,
LOVE
CLOSE4
READY.
No response.
READY.
HELLO,LOVE
READY.
PRINTING DOUBLE WIDTH CHARACTERS
Double width characters have many applications, from enlarging
graphics on paper to printing bold face headlines and titles. The
following program demonstrates how to use CHRS (14) to print
double spaced letters. . .and also shows how togetbackto normal
letters by typing CHRS (15).
10 OPEN4,4:PRINT#4,CHRS (14) "DOUBLE LETTERS"
20 PRINT#4, "STILL DOUBLE"
I
I
I
I
238

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents