Entry | Contents |
---|---|
R0 | Palette entry |
R5 | Bit 2 is set |
R6 | Pointer to function to be called |
R7 | Pointer to transfer function workspace |
R12 | Workspace (as specified in R7) |
Exit | Contents |
---|---|
R0 | Processed palette entry |
All other registers are preserved |
By setting bit 2 of the flags and R0 >= 256, ColourTrans will call the transfer function specified in R6 to pre-process each palette entry. R12 points to the workspace (as specified in R7).
The palette entry must be returned in R0, and all other register preserved.