Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 44 (Reason code) + Area value |
R1 | Unused/Sprite area (as defined by area value in R0) |
R2 | Sprite name/pointer (as defined by area value in R0) |
R3 | X coordinate |
R4 | Y coordinate |
R5 | Mask value |
Exit | |
---|---|
All registers preserved |
This call allows the value of a sprite mask pixel to be written.
Coordinates are specified in pixels, with (0,0) being the bottom-left corner of the sprite.
For sprites with the wide mask flag set in the Sprite Mode Word, the value in R5 should be an alpha value between 0 and 255, with 255 representing a fully opaque pixel and 0 representing a fully transparent pixel.
For other sprites, if R5 is zero the mask pixel will be set to zero (i.e. transparent), and if R5 is non-zero the mask pixel will be set to one (i.e. opaque).
An error will be returned if an attempt is made to use this operation on a sprite without a mask.