Yamaha V9938 Programmer's Manual page 98

Msx-video
Table of Contents

Advertisement

coordinate of 208 will not be displayed and in order to display sprite in this area on the
scrolled screen programmer should use Y-coordinate equal to 207 or 209.
Pattern number specifies which pattern from sprite pattern generator table to use to
display the sprite bitmap image. If 8*8 dots sprite size is selected, there're 256 patterns
available, but if 16*16 dots sprite size is selected, there there're only 64 patterns available.
In 16*16 mode two lower-order bits of the pattern number are not used (and they can
hold any value).
Color code specifies color for pattern color 1 (of the dots which are set to "1" in the
sprite bitmap image). The dots which are set to "0" in the sprite bitmap image will appear
transparent.
EC (Early clock) is used to offset sprite by 32 dots to the left. This feature is useful
when programmer needs to put sprite to the left off the screen.
5.1.3. Sprite pattern generator table (SM1)
Sprite pattern generator table is an area in the VRAM specifying the sprite patterns
(appearance). Base address of this table should be set in register R#6.
Eight bytes are used for each pattern, and whole table occupies 2048 bytes (800h)
for all the 256 patterns possible. Each pattern is assigned the number, #0 to #255. If
sprite size of 8*8 is selected (SI=0) then each displayed sprite has one pattern; if sprite
size of 16*16 is selected (SI=1) then each sprite is comprised of four patterns.
MSB
7
(B) 0
1
2
3
4
5
6
7
2040
2041
2042
2043
2044
2045
2046
2047
© 1985 ASCII CORP. / NIPPON GAKKI CO.
6
5
4
3
2
1
Page 98 of 108
0
LSB
Bitmap for
pattern #0
...
Bitmap for
pattern #255
© 2010-2015 Eugeny Brychkov

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents