© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 104 of 108
© 2010-2015 Eugeny Brychkov
MSB
7 6 5 4 3 2 1 0
LSB
0 EC
CC
IC
0
Color code
Line 1
1 EC
CC
IC
0
Color code
Line 2
15 EC
CC
IC
0
Color code
Line 16
Colors for
sprite #0
… …
496 EC
CC
IC
0
Color code
Line 1
497 EC
CC
IC
0
Color code
Line 2
511 EC
CC
IC
0
Color code
Line 16
Colors for
sprite #31
Color code for
each line (0…15)
0: Detect
1: No detect
Line collision
detect
0: Enable
1: Disable
Sprite priority
control
0: No shift
1: Shift left
Shift left 32
dots
5.2.5. Priority mechanism and multicolored sprite combinations (SM2)
In sprite mode 2 (SM2), if the “CC” bit of the sprite color table entry is set to 1, the
sprite priority mechanism is cancelled for the specified line. Collision mechanism does not
work, mixing color codes of the lines of affected sprites using “OR” logical operation.
This logical color mixing will work for sprite N if its affected line has CC bit set, and
this line will collide with the line of another sprite which has CC bit reset to “0” and has
lower number (N-1, N-2, …, 0 – i.e. higher priority).
Moreover, the line of the sprite having CC bit set to “1” will not be displayed at all if
there will be no lower number sprite with the line with CC bit set to “0” at the same screen
line.
Please see below for the example for the sprite combination displayed in seven colors.