| From: | David McMinn |
| Date: | 26 Oct 99 at 10:13:30 |
| Subject: | Re: Palette question... |
Hi Curt
> OK, first read this bit of text from the RKM's:
Ahh, standard RKM random gibberish.
> Huh??? How the heck do I do this? OK, under AGA, the palette data is
> already 8 bits - no problem.
Yep, on AGA, say a value which was 8 bits long: xxxxxxxx
on ECS you'd have a nibble: xxxx
You're trying to left justify the bits, so that the most significant
bits (leftmost) are aligned, so you want them to look like this:
AGA: xxxxxxxx 00000000 00000000 00000000
ECS: xxxx0000 00000000 00000000 00000000
So for both, left shift the number 24 times, and if it is an ECS
machine, do an extra 4 left shifts.