Several ColourTrans SWIs allow the user to specify a source/destination mode/palette using a pair of registers (typically R0 & R1) and a flag bit (e.g. bit 0 of R5 in ColourTrans_GenerateTable). This set of values can either describe a screen mode (with either a specific palette, the current palette, or a default palette), or a sprite (with the sprite’s palette). To allow ColourTrans to correctly determine whether your are passing a mode or a sprite, adhere to one of the following argument patterns:
If a palette pointer is used, the palette is expected to be 2, 4, 16 or 256 words long for 1bpp, 2bpp, 4bpp or 8bpp respectively. This means that a full 256 entries are expected for old-style 64 colour modes. Palette entries should be in standard &BBGGRR00 format.