janbredenbeek wrote:I'm also trying to figure out how to make use of more than 8 colours on QPC2. I know there are SBASIC commands COLOUR_PAL and COLOUR_24 to change the palette but I'm looking for documentation to do this from machine code.
Any ideas?
.
Just realized this apparently was never answered.
I am pretty sure there is no machine code equivalent to, e.g. COLOUR_PAL and COLOUR_24, as this only affects
the interpretation of colour values by S*Basic and doesn't do anything to the system itself. In machine code, you need to
know what color definition you use and use the appropriate INK, PAPER, STRIP,... calls out of three possible sets (Palette, native, true color) to apply it.
In S*BASIC, you thus set a sort of switch that tells BASIC how to interpret your color values when set as INK, PAPER, STRIP or drawn into BLOCKS.
In machine code, this switch doesn't exist - each of the three ways of interpreting color values has their own INK, PAPER, STRIP, BLOCK calls.
http://www.dilwyn.me.uk/docs/smsqegd2/smsqe/GD2user.pdf
lists the calls on how to access GD2 colors and INK, PAPER, STRIP calls for the three different color definition spaces.
Tobias