diff --git a/Audio & Video.md b/Audio & Video.md index d29e51a..5f2b83f 100644 --- a/Audio & Video.md +++ b/Audio & Video.md @@ -202,7 +202,7 @@ Bits 4-5 encode the tile map width, while bits 6-7 encode the tile map height, a | Value | Map Width / Height | | :---: | :----------------: | -| 0 | 32 tiles | +| 0 | 32 tiles | | 1 | 64 tiles | | 2 | 128 tiles | | 3 | 256 tiles | @@ -292,6 +292,65 @@ The palette is stored in VERA memory beginning at VERA address `0x1FA00`, and co Note that the high order four bits in the second byte of each palette entry is unused. +## Sprite Entries + +Sprites are controlled using 128 control entries, beginning at VERA address `0x1FC00`. Each of these entries contains the following structure: + +
Offset | +Bit 7 | +Bit 6 | +Bit 5 | +Bit 4 | +Bit 3 | +Bit 2 | +Bit 1 | +Bit 0 | +
---|---|---|---|---|---|---|---|---|
0 | +Bitmap (Address bits 5-12) | +|||||||
1 | +Mode | +- | +Bitmap (Address bits 13-16) | +|||||
2 | +X Position (Low 8 bits) | +|||||||
3 | +- | +X Position (High 2 bits) | +||||||
4 | +Y Position (Low 8 bits) | +|||||||
5 | +- | +Y Position (High 2 bits) | +||||||
6 | +Collision Mask | +Layer Position | +Vertical Flip | +Horizontal Flip | +||||
7 | +Sprite Height | +Sprite Width | +Palette Offset | +