Radio Shack TRS-80 Model 100 Basic Manual page 107

Basic language lab
Hide thumbs Also See for TRS-80 Model 100:
Table of Contents

Advertisement

Experiment #2
Printing Text Anywhere On The LCD
The
PRINT
@ (PRINT AT) statement allows printing of text in any of 320 positions
on the display. These positions correspond to eight 40 character lines as illustrated in
the table below:
Columns
1
2
3
4 ...
.... 39
40
Line 1
0
1
2
3 ....
·
..
38
39
Line 2
40
41
42
43 ....
· ..
78
79
Line 3
80
81
82
83 ....
· .. 118
119
Line 8
280
281
282
283
....
· .. 318
319
Table 8-1. of PRINT
@
positions
Clear the display and print the name "RADIO SHACK" in the center of the display
by entering:
CLS
(ENTER)
PRINT @ 135, "RADIO SHACK"
(ENTER)
You should see:
Ok
PRINT
@
135,
IIRADIO SHACK II
RADIO SHACK
Ok
Note that the name "RADIO SHACK" begins printing in the 15th column of line 4.
The PRINT@ position would be computed as:
40
*
(4 -
1)
+
15
=
135.
In general, to print in line L and column C, use PRINT@ position
40
*
(L - 1)
+
C
101

Advertisement

Table of Contents
loading

Table of Contents