Assembly Language SPRITE Module - fvdhoef/aquarius-plus GitHub Wiki
SPRITE Module
This module contains routines to create and manipulate sprites.
A sprite is made up of individual 8x8 pixel spritles.
gfx_sprite_set_attrs
Input | C: Attribute Count |
DE: Attribute List Address | |
HL: Sprite Definition Address | |
Output | Flags: NZ if attribute count <> spritle count |
Clobbers | A,BC,DE |
Action: Sets the attributes of the individual spritles in a sprite.
- Attribute List is a list of one byte sprite attributes.
- Attribute Count is the number of attributes in the list.
- Sprite Definition is a sprite definition structure.
Example:
ATTR_LIST: BYTE O,O,SPR_HFLIP
ATTR_COUNT EQU $ - ATTR_
LD C,ATTR_COUNT
LD DE,ATTR_LIST
LD HL,SPRITE_DEF
LD IX,GFX_SPRITE_ATTRS
CALL EXEC_GFX_ROUTINE
Sets the horizontal flip attribute of the third spritle in sprite SPRITE_DEF.
routine_name
| Input | | | | | | | | Output | | | | | | | | Clobbers | | |
Action: descriptive text
Examples:
code
Explanation