Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 43 (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 |
Exit | |
---|---|
R5 | Mask value |
All other registers preserved |
This call allows the value of a sprite mask pixel to be read.
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 returned value is an alpha value between 0 and 255, with 255 representing a fully opaque pixel and 0 representing a fully transparent pixel.
For other sprites, the returned value is either 0 or 1, representing transparent and opaque respectively.
If the sprite lacks a mask, the value returned is the appropriate value for if the pixel was opaque (i.e. 255 or 1).