Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | 15 (Reason code) + Area value |
R1 | Unused/Sprite area (as defined by area value in R0) |
R2 | Sprite name |
R3 | 1 to create palette, 0 to exclude palette |
R4 | Width in pixels |
R5 | Height in pixels |
R6 | Mode Specifier |
Exit | |
---|---|
All registers preserved |
This call creates a new sprite with the given name.
If a sprite with the given name already exists, it will first be deleted before the new sprite is created.
All of the sprite pixels will be initialised to zero.
If R6 is a valid Sprite Mode Word (i.e. a mode number, or a RISC OS 3.5 or RISC OS 5 style sprite mode word) then it will be used as-is to initialise the mode word of the new sprite. Otherwise it must be a pointer to a Mode Selector Block. The block will be converted to a RISC OS 3.5 or RISC OS 5 sprite mode word, favouring the most backwards compatible format.