Vectw c 4 ch pi – Sharp MZ-3500 User Manual

Page 46

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

M 7. 3500

2)

Straight

line drawing

f

j

OOOO

0028

0001

0027

0050

VRAM 16 bit

structure

Example to draw a straight line from (X, Y) = (3, 1) to (X,

Y) = (635, 1).

Coordinates must be changed to absolute 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=0

Whereas.

CSRW

C 4 9H

PI 28H

EAD L ,

P2 OOH

P3 20H

dAU

TEXTW C 7 8H

PI

FF

Kind

of

1

P2

FF

VECTW C 4 CH

PI

OAH } Drawing

P2 78H

■ 1 AX 1

P3 02H

P4 88H

2 1

¿lY

1

P5 H)H

P6 1 OH

P7

FBH

2 1 AY 1

P8 OOH ■

P9 OOH

2 1 AY 1

WRITE

C 2 3H

VECTE C 6CH

■ 2 IzYX I

[Explanation]

Specify the kind of line by TEXTW, using C for command

code and P for parameter, and specify the line 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 drawing method for any line

drawing direction using X = Y = 0.

Advertising