★ HARDWARE Manual ★ VDP1 User's Manual| bit | 15 | 14 | 13 | 12 | 11 | Ten | 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 command | Texture drawing command | Fixed sprite drawing command |
0 | 1 | Rectangle sprite drawing command | |||||
1 | 0 | Transform sprite drawing command | |||||
1 | 0 | 0 | Non-texture drawing command | Polygon drawing command | |||
0 | 1 | Polyline drawing command | |||||
1 | 0 | Line drawing command | |||||
1 | 0 | 0 | 0 | Coordinate setting command | Clipping coordinate setting command | 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 | Ten | 9 | 8 | ||
0 | 0 | 0 | 0 | 0H | Specify 2 coordinates |
0 | 1 | 0 | 1 | 5H | Left edge of the top |
0 | 1 | 1 | 0 | 6H | Center of the top |
0 | 1 | 1 | 1 | 7H | Right edge of the top |
1 | 0 | 0 | 1 | 9H | Left edge of the center |
1 | 0 | 1 | 0 | AH | Central center |
1 | 0 | 1 | 1 | BH | Right edge of the center |
1 | 1 | 0 | 1 | DH | Left edge of the bottom |
1 | 1 | 1 | 0 | EH | Center of the bottom |
1 | 1 | 1 | 1 | FH | Right edge of the bottom |
![]() | Strict adherence ★ Settings other than the above are prohibited. |
+1 +2 +3 ┃ ┌─┬─┬─┬─╂─┬─┬─┬─┐ +4 │ ■ │ │ │ ■ ┃ │ │ │ ■ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ +8 ┿ ■ ┿━┿━┿ ■ ╋━┿━┿━┿ ■ ┿ Center line ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ │ │ │ │ ┃ │ │ │ │ │ ├─┼─┼─┼─╂─┼─┼─┼─┤ + C │ ■ │ │ │ ■ ┃ │ │ │ ■ │ └─┴─┴─┴─╂─┴─┴─┴─┘ ┃ Center line The value of the zoom point is the sum of these vertical and horizontal values.
15 | 14 | 13 | 12 | 11 | Ten | 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 | Ten | 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) | ||||||||||||||
┌──────────────── → The left end is a fixed point, the left end = XA │ Right end = XA + XB │ │ ┌────────── → Center is a fixed point, left end = XA-XB / 2 │ │ Right end = XA + (XB + 1) / 2 │ │ │ │ ┌─── The right end is a fixed point, the left end = XA-XB │ │ │ Right end = XA │ │ │ ┌─┬─┬─┬─┬─┬─┬─┬─┐ │ ■ │ │ │ ■ │ │ │ │ │ ■ │ ─ → The upper side is a fixed point, the upper side = YA ├─┼─┼─┼─┼─┼─┼─┼─┤ Bottom = YA + YB │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ ■ │ │ │ ■ │ │ │ │ │ ■ │ ─ → The center is a fixed point, the upper side = YA-YB / 2 ├─┼─┼─┼─┼─┼─┼─┼─┤ Bottom = YA + (YB + 1) / 2 │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ │ │ │ │ │ │ │ │ │ │ ├─┼─┼─┼─┼─┼─┼─┼─┤ │ ■ │ │ │ ■ │ │ │ │ │ ■ │ ─ → The lower side is a fixed point, the upper side = YA-YB └─┴─┴─┴─┴─┴─┴─┴─┘ Bottom = YA [Note] Round down after the decimal point
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 | Does not flip |
0 | 1 | Flip left and right |
1 | 0 | Flip upside down |
1 | 1 | Flip up / down / left / right |
Figure 6.4 Character reading direction
★ HARDWARE Manual ★ VDP1 User's Manual