Yamaha V9938 Programmer's Manual page 101

Msx-video
Table of Contents

Advertisement

5.2.1. Global sprite attributes and tables (SM2)
Register R#1 contains two controls for sprites, allowing magnification and quadruple
sprite pattern size. Register R#8 contains one control bit, "SPD", which allows disabling
and enabling sprite display.
MSB
R#1
R#8
Sprites are defined by three tables: sprite pattern generator table, which controls the
appearance of the dots within the sprite (being on "1" or off "0"), sprite color table, which
control colors of the sprite lines and other attributes, and sprite attribute table, which
controls positioning and used pattern number.
5.2.2. Sprite attribute table (SM2)
The sprite attribute table is an area in the VRAM that defines display coordinates for
all the possible 32 sprites, pattern numbers used for display and some other flags. Each
sprite has four bytes of attribute data, making up 128 bytes (80h) of the memory.
MSB
7
(B) 0
1
2
3
124
125
126
127
© 1985 ASCII CORP. / NIPPON GAKKI CO.
7
6
0
BL
IE0
MS
LP
TP
6
5
4
Y-coordinate (0...255)
X-coordinate (0...255)
Pattern number (0...255)
Reserved
Y-coordinate (0...255)
X-coordinate (0...255)
Pattern number (0...255)
Reserved
5
4
3
M1
M2
CB
VR
3
2
Page 101 of 108
2
1
0
LSB
0
SI
MAG
0: Normal
Sprite
1: Double
magnification
0: 8*8
Sprite size
1:16*16
0
SPD
BW
0: Enable
Sprite display
1:Disable
control
1
0
LSB
Attribute
for sprite #0
Attribute
for sprite #31
© 2010-2015 Eugeny Brychkov
R#1
R#8
area
area

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents