bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CMDCTRL +00H | END | JP | ZP | 0 | 0 | Dir | Comm |
END | Comm | function | command | ||||
bit 15 | 3 | 2 | 1 | 0 | |||
0 | 0 | 0 | 0 | 0 | drawing | texture | Standard sprite drawing command |
0 | 1 | Rectangle sprite drawing command | |||||
1 | 0 | Transform sprite drawing commands | |||||
1 | 0 | 0 | non-texture | polygon drawing commands | |||
0 | 1 | Polyline drawing command | |||||
1 | 0 | Line drawing command | |||||
1 | 0 | 0 | 0 | Coordinate settings | clipping coordinates | User clipping coordinate setting command | |
1 | System clipping coordinate setting command | ||||||
1 | 0 | Relative coordinate setting command | |||||
1 | 0 0 0 0 | drawing end command | |||||
Codes other than the above | Setting prohibited (please do not set) |
ZP | code | zoom point | |||
bit 11 | 10 | 9 | 8 | ||
0 | 0 | 0 | 0 | 0H | Specify 2 coordinates |
0 | 1 | 0 | 1 | 5H | top left edge |
0 | 1 | 1 | 0 | 6H | center of top |
0 | 1 | 1 | 1 | 7H | right edge of top |
1 | 0 | 0 | 1 | 9H | left edge of center |
1 | 0 | 1 | 0 | AH | center of center |
1 | 0 | 1 | 1 | BH | right edge of center |
1 | 1 | 0 | 1 | DH | left edge of bottom edge |
1 | 1 | 1 | 0 | EH | center of bottom edge |
1 | 1 | 1 | 1 | FH | right edge of the bottom |
Strictly observed★Settings other than the above are prohibited. |
+1 +2 +3 ┃ ┌─┬─┬─┬─╂─┬─┬─┬─┐ +4 │■│ │ │■┃ │ │ │■│ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ +8 ┿■┿━┿━┿■╋━┿━┿━┿■┿ Center line ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ +C │■│ │ │■┃ │ │ │■│ └─┴─┴─┴─╂─┴─┴─┴─┘ ┃ center line The sum of these vertical and horizontal values is the zoom point value.
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
CMDXA | +0CH | sign extension | Fixed point, X coordinate (XA) | ||||||||||||||
CMDYA | +0EH | sign extension | Fixed point, Y coordinate (YA) | ||||||||||||||
CMDXB | +10H | sign extension | Display, X coordinate (XB) | ||||||||||||||
CMDYB | +12H | sign extension | Display, Y coordinate (YB) |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
CMDXA | +0CH | sign extension | Vertex (A), X coordinate (XA) | ||||||||||||||
CMDYA | +0EH | sign extension | Vertex (A), Y coordinate (YA) | ||||||||||||||
+10H | : | ||||||||||||||||
+12H | : | ||||||||||||||||
CMDXC | +14H | sign extension | Vertex (C), X coordinate (XC) | ||||||||||||||
CMDYC | +16H | sign extension | Vertex (C), Y coordinate (YC) |
┌────────────────→Left end is fixed point, Left end = XA │ Right end = XA+XB │ │ ┌──────────→The center is the fixed point, Left edge = XA-XB/2 │ │ Right end = XA+(XB+1)/2 │ │ │ │ ┌───Right end is fixed point, Left end = XA-XB │ │ │ Right end = XA │ │ │ ┌─┬─┬─┬─┬─┬─┬─┬─┐ │■│ │ │■│ │ │ │■│─→Top side is fixed point, Top side = YA ├─┼─┼─┼─┼─┼─┼─┼─┤ Lower side = YA + YB │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │■│ │ │■│ │ │ │■│─→Fixed point in the center, Upper side = YA-YB/2 ├─┼─┼─┼─┼─┼─┼─┼─┤ Lower side = YA+(YB+1)/2 │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │■│ │ │■│ │ │ │■│─→Lower side is fixed point, Upper side = YA-YB └─┴─┴─┴─┴─┴─┴─┴─┘ Bottom = YA [Note] Fractions below the decimal point are rounded down.
ZP=0 (100,50) ┏━━━━━━━━┓ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┗━━━━━━━━┛ (140,80) ZP=5H ZP=6H ZP=7H (100,50) (140,50) (80,50) (120,50) (60,50) (100,50) ┏┿━━━━━━━┓ ┏━━━┿━━━━┓ ┏━━━━━━━┿┓ ╂■───────╂ ╂───■────╂ ╂───────■╂ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┗┿━━━━━━━┛ ┗━━━┿━━━━┛ ┗━━━━━━━┿┛ (100,80) (140,80) (80,80) (140,80) (60,80) (100,80) ZP=9H ZP=AH(10) ZP=BH(11) (100,35) (140,35) (80,35) (120,35) (60,35) (100,35) ┏┿━━━━━━━┓ ┏━━━┿━━━━┓ ┏━━━━━━━┿┓ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ╂■───────╂ ╂───■────╂ ╂───────■╂ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┗┿━━━━━━━┛ ┗━━━┿━━━━┛ ┗━━━━━━━┿┛ (100,65) (140,65) (80,65) (140,65) (60,65) (100,65) ZP=DH(13) ZP=EH(14) ZP=FH(15) (100,20) (140,20) (80,20) (120,20) (60,20) (100,20) ┏┿━━━━━━━┓ ┏━━━┿━━━━┓ ┏━━━━━━━┿┓ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ┃│ ┃ ┃ │ ┃ ┃ │┃ ╂■───────╂ ╂───■────╂ ╂───────■╂ ┗┿━━━━━━━┛ ┗━━━┿━━━━┛ ┗━━━━━━━┿┛ (100,50) (140,50) (80,50) (140,50) (60,50) (100,50)
Dir | Inversion processing | |
Y | X | |
---|---|---|
0 | 0 | not reversed |
0 | 1 | Flip left and right |
1 | 0 | Flip upside down |
1 | 1 | Flip vertically and horizontally |
Figure 6.4 Character read direction