Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 41 (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 | Pixel colour |
R6 | Pixel tint |
All other registers preserved |
This call allows the colour of a sprite pixel to be read.
Coordinates are specified in pixels, with (0,0) being the bottom-left corner of the sprite.
For 256 colour sprites which lack a full palette, R5 will contain the pixel colour/palette index (0-63) and R6 the tint value (0, 64, 128 or 192).
For all other sprites, R5 will be the pixel colour/palette index and R6 will be zero.