Sharp MZ-700 Series Owner's Manual page 90

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

Advertisement

2.7.6.6 HSET
Format
Function
Example
20
3 0
4 0
5 0
6 0
7 0
80
2.7.6.7 GPRINT
Format
Function
Example
(abbreviated format: H.)
HSET
This statement sets the current pen location as the new origin. With this feature, the
origin can be set to the location which is most appropriate for drawing figures. A
MOVE statement is frequently executed before executing this command.
1 0
M O D E
G R
M O V E
2 4 0 ,
- 2 4 0
H S E T
Sets the new origin.
F O R
1 = 1
T O
3 6 0
S T E P
3 0
L I N E
2 4 0 X C O S CPAIC1 ) * l / 1 8 0 ) . 2 4 0 * S I N (PAIC1 ) X I / 1 8 0 )
P H O M E
N E X T
M O D E
T N
(abbreviated format: GP.)
GPRINT [n, @] , x$
GPRINT x$
n
Integer indicating the character size (0 ~ 63)
@
Integer indicating the direction in which lines of characters are printed.
(@ = 0 ~ 3)
x$
Character
This statement prints the specified character using the specified size and direction.
80 characters can be printed on each line when n = 0; 40 characters can be printed
on each line when n = 1; and 26 characters can be printed on each line when n = 2.
When n and @ are omitted, the previous settings are assumed. Their initial values are
n = 1 and @ = 0.
1 0
M O D E
G R
2 0
G P R I N T
" A "
Prints " A " in the graphic mode.
3 0
G P R I N T
( 2 , 23 , " A " --Prints an upside down " A " in the 26
characters/line mode.
The following figures show various examples of printout.
N = 0
N = 3
A
> = 0
» - 3
N= I
N=4
A
A
\ / @ = 2
N = 2
N = 5
A
A
88-

Advertisement

Table of Contents
loading

Table of Contents