| Entry | |
|---|---|
| R0 | Palette entry |
| R1 | Destination mode, or -1 for current mode |
| R2 | Destination palette pointer, or |
| -1 for current palette, or | |
| 0 for default for the current mode |
| Exit | |
|---|---|
| R0 | GCOL |
| R1 | Preserved |
| R2 | Preserved |
This purpose of this call is to return the closest GCOL, given a specific palette entry with the destination screen mode and palette.
The 24-bit palette entries are in the &BBGGRR00 format.
GCOL is only of use for 256 colour screen modes.