Figure 14.1 Shadow function
Figure 14.2 Writing normal shadow sprite data
●For sprite types 0 to 3 and 5 Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│1│1│1│1│1│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ●For sprite types 4 and 6 Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│-│1│1│1│1│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ●For sprite type 7 Bits Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│-│-│1│1│1│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ●For sprite types C to F Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│-│-│-│1│1│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ●For sprite type 8 Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │−│−│−│−│−│−│−│−│−│1│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ●For sprite types 9 to B Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │−│−│−│−│−│−│−│−│−│−│1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ Note: The bits in the "-" part are not used to determine normal shadows.
Figure 14.4 Sprite shadows and transparent shadows
●Sprite shadow Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │1│×│×│×│×│×│×│×│×│×│×│×│×│×│×│×│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ × can be 0 or 1 as long as the dot color data for the specified sprite type does not meet the normal shadow conditions. ●Transparent shadow Bit15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │1│0│0│0│0│0│0│0│0│0│0│0│0│0│0│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
15 | 14 | 13 | 12 | 11 | 10 | 09 | 08 |
- | - | - | - | - | - | - | TPSDSL |
---|
07 | 06 | 05 | 04 | 03 | 02 | 01 | 00 |
- | - | BKSDEN | R0SDEN | N3SDEN | N2SDEN | N1SDEN | N0SDEN |
---|
N0SDEN | 1800E2H | Bit 0 | For NBG0 (or for RBG1) |
N1SDEN | 1800E2H | Bit 1 | For NBG1 (or for EXBG) |
N2SDEN | 1800E2H | Bit 2 | For NBG2 |
N3SDEN | 1800E2H | Bit 3 | For NBG3 |
R0SDEN | 1800E2H | bit 4 | For RBG0 |
BKSDEN | 1800E2H | Bit 5 | For BACK |
xxSDEN | process |
---|---|
0 | Do not use the shadow function (do not add shadows) |
1 | Using the shadow function (adding a shadow) |
TPSDSL | process |
---|---|
0 | Disable transparent shadow sprites |
1 | Enable transparent shadow sprites |