Converts an array of firmware colour values into their equivalent hardware colour values.
void cpct_fw2hw (void* <fw_colour_array*, u16 size);
(2B DE) fw_colour_array | Pointer to an array of firmware colour values (in the range [0-26]) |
(2B BC) size | Number of colour values in the array |
call cpct_fw2hw_asm
Converts an array of firmware colour values into their equivalent hardware colour values. It directly modifies the array passed to the function, overwritting the its values with the hardware colour values.
AF, BC, DE, HL
C-bindings | 19 bytes |
ASM-bindings | 15 bytes |
Case | microSecs (us) | CPU Cycles --------------------------------------------- Any | 16 + 18*NC | 64 + 72*NC --------------------------------------------- Asm saving | -13 | -52 --------------------------------------------- NC= 4 | 88 | 352 NC=16 | 304 | 1216
NC=Number of colours to convert