Entry | |
---|---|
R0 | Palette entry |
R3 | 0 for foreground, or 128 for background |
R4 | GCOL action |
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 furthest GCOL to the palette entry passed in R0 in the current mode and palette and set it.
The top three bits of R3 and R4 should be zero to allow for future expansion.
GCOL is only of use in 256 colour screen modes.