Sprite Attribute Table descprition and utilities | |
Sprite entry bitmasks | |
VDC_SPRITE_CG_MODE_MASK | Bitmask for CG mode. |
VDC_SPRITE_VERTICAL_FLIP_MASK | Bitmask for sprite vertical flip flag. |
VDC_SPRITE_HORIZONTAL_FLIP_MASK | Bitmask for sprite horizontal flip flag. |
VDC_SPRITE_HEIGHT_MASK | Bitmask for sprite height. |
VDC_SPRITE_WIDTH_MASK | Bitmask for sprite width. |
VDC_SPRITE_PRIORITY_MASK | Bitmask for sprite priority. |
VDC_SPRITE_PALETTE_MASK | Bitmask for sprite palette index. |
Sprite CG modes. | |
VDC_SPRITE_CG_MODE_B01 | Bitplanes 0 and 1 are read, 2 and 3 are treated as zeroes. |
VDC_SPRITE_CG_MODE_B23 | Bitplanes 2 and 3 are read, 0 and 1 are treated as zeroes. |
Sprite size. | Sprite width can be 16 or 32. |
VDC_SPRITE_HEIGHT_16 | 16 px sprite height. |
VDC_SPRITE_HEIGHT_32 | 32 px sprite height. |
VDC_SPRITE_HEIGHT_64 | 64 px sprite height. |
VDC_SPRITE_WIDTH_16 | 16 px sprite width. |
VDC_SPRITE_HEIGHT_32 | 32 px sprite width. |
Sprite control flags | |
VDC_SPRITE_PRIORITY_LOW | The sprite will be displayed in background. |
VDC_SPRITE_PRIORITY_HIGH | The sprite will be displayed in foreground. |
VDC_SPRITE_HORIZONTAL_FLIP | The sprite will be flipped horizontally. |
VDC_SPRITE_VERTICAL_FLIP | The sprite will be flipped vertically. |
Bitmask for CG mode.
VDC_SPRITE_CG_MODE_MASK = $0001
Bitmask for sprite vertical flip flag.
VDC_SPRITE_VERTICAL_FLIP_MASK = $80
Bitmask for sprite horizontal flip flag.
VDC_SPRITE_HORIZONTAL_FLIP_MASK = $08
Bitmask for sprite height.
VDC_SPRITE_HEIGHT_MASK = $30
Bitmask for sprite width.
VDC_SPRITE_WIDTH_MASK = $01
Bitmask for sprite priority.
VDC_SPRITE_PRIORITY_MASK = $0080
Bitmask for sprite palette index.
VDC_SPRITE_PALETTE_MASK = $000f
Bitplanes 0 and 1 are read, 2 and 3 are treated as zeroes.
VDC_SPRITE_CG_MODE_B01 = $00
Bitplanes 2 and 3 are read, 0 and 1 are treated as zeroes.
VDC_SPRITE_CG_MODE_B23 = $01
16 px sprite height.
VDC_SPRITE_HEIGHT_16 = $00
32 px sprite height.
VDC_SPRITE_HEIGHT_32 = $10
64 px sprite height.
VDC_SPRITE_HEIGHT_64 = $20
16 px sprite width.
VDC_SPRITE_WIDTH_16 = $00
The sprite will be displayed in background.
VDC_SPRITE_PRIORITY_LOW = $00
The sprite will be displayed in foreground.
VDC_SPRITE_PRIORITY_HIGH = $80
The sprite will be flipped horizontally.
VDC_SPRITE_HORIZONTAL_FLIP = $08
The sprite will be flipped vertically.
VDC_SPRITE_VERTICAL_FLIP = $80