Japanese
HARDWARE ManualVDP1 User's ManualChapter 7 Command
BackForward
VDP1 User's Manual/Chapter 7 Commands

■7.5 Rectangular sprite drawing command

The rectangle sprite drawing command draws a character pattern to the frame buffer. When drawing, you can flip the character pattern vertically, horizontally, scale, and stretch it at the specified coordinates.
When the end bit is 0B and the command selection bit is 0001B, it is a rectangular sprite drawing command. When the zoom point is 0000B, define by specifying two coordinates. When it is other than 0000B, it is defined as fixed point specification.
Rectangular sprites cannot be rotated 90 degrees. If you want to rotate the sprite by 90 degrees, specify it using the transform sprite drawing command.

●Specify two coordinates (rectangular sprite drawing command)

The contents of the command table for specifying two coordinates are as follows.

 bit
 15
 14
 13
 12
 11
 10
 9
 8
 7
 6
 5
 4
 3
 2
 1
 0
CMDCTRL
+00
0 JP 0 0 0 0 0 0 Dir 0 0 0 1
CMDLINK
+02
LINK specification/8H 0 0
CMDPMOD
+04
M.O. 0 0 0 PC Cl Cm Me E.C. SP Color
mode
color calculation
CMDCOLR
+06
Color bank, color lookup table/8H (LSB fixed at 00)
CMDSRCA
+08
Character address/8H
CMDSIZE
+0A
0 0 Character size X/8 Character size Y/8
CMDXA
+0C
sign extension Vertex (A), X coordinate (XA)
CMDYA
+0E
sign extension Vertex (A), Y coordinate (YA)
+10
+12
CMDXC
+14
sign extension Vertex (C), X coordinate (XC)
CMDYC
+16
sign extension Vertex (C), Y coordinate (YC)
+18
+1A
CMDGRDA
+1C
Gouraud shading table/8H
【note】
is ignored (don't care)

The two-point coordinate specification for the rectangular sprite drawing command is defined as follows.


BackForward
HARDWARE ManualVDP1 User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997