Entry | |
---|---|
R0 | Palette entry |
R3 | Flags |
R4 | GCOL action (only the bottom 3 bits are valid) |
Exit | |
---|---|
R0 | GCOL |
R2 | Log2 of bits-per-pixel for current mode |
R3 | Initial value AND &80 |
R4 | Preserved |
This purpose of this call is to calculate the closest GCOL in the current mode and palette and set it.