Sharp MZ-3500 Service Manual page 46

Hide thumbs Also See for MZ-3500:
Table of Contents

Advertisement

{
2) Straight line drawing
-+X
~
VRAM 16b,t
Example to draw a straight line from (X, Y)
=
(3,1) to (X,
Y)
=
(635, 1).
Coordinates must be changed to absol ute addresses.
(3, 1) - absolute address
=
0028H
Dot address
=
2H
Displacement between two points when the line draw
direction is OA (to the right): X = 635-3
=
632 (=278H),
Y=O
Whereas,
CSRW
C
49H
PI
28H
}
P2
o
OH
EAD L, H
P3
20H
dAD
TEXT"
C
78H
PI
FF
} Kind of Itne (solid line)
P2 FF
VECTW
C
4 CH
PI
OAH
}
Drawing direction
P2 78H
}
P3
02H
IL"X I
P4
88H
}
P5
I-
])Il
2
I!.~
Y I - I /\ X I
P6
lOB
}
P7
FBH
2 I,6Y 1-2 lLiX I
P8
o
OH
}
pg
o
OH
2 IL"Y I
WRITE
C
23H
VECTE
C
6CH
[Explanation]
Specify the kind of line by TEXTW, using C for command
code and P for parameter, and specify the I tne drawing
direction using VECTW and above four values using X and
Y. The rest will be same the dot display It
IS
also possible
to display a dot using the line drawtng rnethod for any Itne
drawing direction using X
=
Y
=
O.
'-
J\17: 3500

Advertisement

Table of Contents
loading

Table of Contents