Sharp MZ-3500 service manual I T E C 23H, P4 88H P5 HH, Kind of line solid line

Models: MZ-3500

1 116
Download 116 pages 54.05 Kb
Page 46
Image 46

M 7. 3500

2)Straight line drawing

00000

0001

0027

0028

 

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 49H PI 28H P2 OOH P3 20H

TEXTW C 78H

PI FF

P2 FF

VECTW C 4 CH

PI OAH

P2 7 8H

P3 0 2 H

P4 88H

P5 H>H

P6 1 OH

P7 FBH

P8 O O H

P9 O O H

W R I T E C 23H

VECTE C 6CH

HAD I, ,H

dAU

Kind of line (solid line)

} Drawing direction

}

\1 AX I

1

f

2

! AY

1 - I A x I

1

2

1AY

1 -2 1AX I

>

1

2

i AY

!

 

[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.

Page 46
Image 46
Sharp MZ-3500 service manual I T E C 23H, P4 88H P5 HH, Kind of line solid line