Sharp MZ-700 Series Owner's Manual page 89

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

2.7.6.3 MOVE
Format
Function
Example
2.7.6.4 RMOVE
Format
Function
Example
MOVE x, y
x
Integer indicating the X coordinate (—480 to 480)
y
Integer indicating the Y coordinate (—999 to 999)
This statement lifts the pen and moves it to the specified location (x, y).
The following program draws a cross with a side length of 480 units.
1 0
M O D E
G R
2 0
L I N E
4 8 0 ,
0
3 0
M O V E
2 4 0 , 2 4 0
Lifts the pen at (480, 0) and moves it to
240, 240).
4 0
L I N E
2 4 0 ,
- 2 4 0
5 0
M O D E
T N
Be sure to advance the paper before executing this program.
(abbreviated formed: RM.)
RMOVE x, y
x
Integer indicating relative X coordinate (—480 to 480)
y
Integer indicating relative Y coordinate (—999 to 999)
This statement lifts the pen and moves it to the location indicated by relative
coordinates (A x, A y)
The following program draws the same cross as the example for the MOVE state-
ment.
1 0
M O D E
G R
2 0
L I N E
4 8 0 ,
0
3 0
R M O V E
- 2 4 0 ,
2 4 0
Lifts the pen at (480, 0), then moves it
—240 units in the X direction and 240
units in the Y direction.
L I N E
M O D E
2 4 0 ,
- 2 4 0
T N
2.7.6.5 PHOME
4 0
5 0
Be sure to advance the paper before executing this program.
(abbreviated format: PH.)
PHOME
This statement returns the pen to the origin.
The following example draws the same cross in red as the example for the MOVE
statement.
1 0
M O D E
G R
2 0
L I N E
4 8 0 , 0
: M O V E
3 0
L I N E
2 4 0 ,
- 2 4 0
2 4 0 ,
2 4 0
L I N E
2 4 0 ,
4 0
P H O M E
5 0
P C O L O R
3
6 0
L I N E
0 ,
2 4 0 ,
0
7 0
M O D E
T N
• Returns the pen to the origin.
4 8 0 ,
2 4 0 , 4 8 0 , - 2 4 0 , 0 , - 2 4 0 ,
0 ,
87

Advertisement

Table of Contents
loading

Table of Contents