★ HARDWARE Manual ★ VDP2 User's Manual Figure 14.1 Shadow function
Figure 14.2 Writing sprite data for normal shadows
● For sprite types 0 to 3, 5 Bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ● For sprite types 4 and 6, bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│-│ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ● For sprite type 7 Bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ − │ − │ − │ − │ − │ − │ − │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ● For sprite types C to F Bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ − │ − │ − │ − │ − │ − │ − │ − │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ● For sprite type 8 Bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ − │ − │ − │ − │ − │ − │ − │ − │ − │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ● For sprite types 9 to B Bits 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │-│-│-│-│-│-│-│-│-│-│ 1│1│1│1│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ Note: The "-" part bits are not used to judge normal shadows.
Figure 14.4 Sprite Shadows and Transparent Shadows
● Sprite Shadow Bit 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1 │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ × │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ X can be 0 or 1 as long as the dot color data in the specified sprite type does not meet the conditions for normal shadow. ● Transparent shadow bit 15 8 7 0 ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
15 | 14 | 13 | 12 | 11 | Ten | 09 09 | 08 08 |
--- | --- | --- | --- | --- | --- | --- | TPSDSL |
|---|
07 07 | 06 06 | 05 05 | 04 | 03 03 | 02 02 | 01 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 a shadow) |
| 1 | Use the shadow function (add a shadow) |
| TPSDSL | process |
|---|---|
| 0 | Disable transparent shadow sprites |
| 1 | Enable transparent shadow sprites |
★ HARDWARE Manual ★ VDP2 User's Manual