English
Language : 

SH7764 Datasheet, PDF (1210/1752 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 23 G2D
3. Command Parameters
n (n = 1 to 65,535): Number of vertices
DXn (n = 1 to 65,535): Work coordinate (relative coordinate). Negative number expressed as
two's complement.
DYn (n = 1 to 65,535): Work coordinate (relative coordinate). Negative number expressed as
two's complement.
(c) Description
Performs binary drawing at work coordinates of a polygonal line comprising line segments (XC,
YC) – (XC + DX1, YC + DY1), (XC + DX1, YC + DY1) – (XC + DX1 + DX2, YC + DY1 +
DY2), ..., (XC + ... + DXn – 1, YC + ... + DYn – 1) – (XC + ... + DXn – 1 + DXn, YC + ... + DYn
– 1 + DYn) to the coordinates specified by the relative shift (DX, DY) from the current pointer
values (XC, YC). 0 drawing or 1 drawing is selected with the drawing mode EOS bit. Drawing is
performed at work coordinates with 0 when EOS = 0, and at work coordinates with 1 when EOS =
1. (Used for edge drawing at work coordinates for a polygonal painted figure.)
The final coordinate point is stored as the current pointer values (XC, YC).
Notes: 1. 8-point drawing is used. The end of a line is drawn.
2. The final coordinate point before coordinate transformation is stored as the current
pointer values (XC, YC).
(d) Example
n=2
(0, 0)
(XC + DX1, YC + DY1)
DX1
DX2
DY1
DY2
(XC, YC)
(XC + DX1 + DX2, YC + DY1 + DY2)
Work coordinates
Rev. 1.00 Nov. 22, 2007 Page 1154 of 1692
REJ09B0360-0100