EasyManua.ls Logo

Radio Shack TRS-80 - Page 118

Radio Shack TRS-80
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
60
Y=Y+1
70
GOTO
40
99
GOTO
99
The RESET command
simply follows along
behind
and
erases the dot from the last SET.
What happens if you omit RESET? When
you try this,
remember to change line
70
to
GOTO
50.
Details . . . Details
One
minor
problem . . . RESET
and
SET
don't
work with negative coordinates. Take a
look
at line
40
40
RESET
(X , Y-l )
if
you
INPUT
Y equal to
0,
then the Y address really becomes Y—1
, ,
.
1.
A
no-no!
We can get
around this pesky little detail by changing line
40
to:
40 RESET (X ,
Y
+
47
)
Why does this work?
Back
to
the Good Stuff
We can
just
as easily move a point to the right with
:
10
INPUT
"HORIZONTAL
STARTING
POINT
(90
TO
127)"
(X
20
INPUT
"VERTICAL
STARTING
POINT (0
TO
47)
"jY
30
CLS
40
RESET ( X
+
l
27
,
Y)
50
SET (X,Y)
60
X
=
X+l
70 GOTO
40
99 GOTO 99
116
Hint:
Wsap^aroUfid?

Other manuals for Radio Shack TRS-80

Related product manuals