-
Notifications
You must be signed in to change notification settings - Fork 8
Assembly Language SPRITE Module
Curtis F Kaylor edited this page Sep 14, 2023
·
3 revisions
This module contains routines to create and manipulate sprites.
A sprite is made up of individual 8x8 pixel spritles.
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.
| Input | | | | | | | | Output | | | | | | | | Clobbers | | |
Examples:
code
Explanation
To Search for pages in the wiki, press Pages above and type a search term in the "Find a page..." box. Results will update beneath automatically.
- Aquarius+ User Guide
- Quick Start
- Hardware
- Software
-
Other Development Resources