Palette



Sam Coupé | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

The CoupĂ©’s palette is 128 colours of which 16 can be chosen (MODE1,2&4) or 4 in MODE3 - see Screen Modes.

The palette can be altered on a per-line basis using the line interrupts in MODEs 2-4 to give multiple colours on screen or to produce effects in the border, see Fred 41 menu for a good example.

Originally the machine was to have 64 colours due to a shortage of pins on the ASIC, see Hardware Bugs and Limitations but intervention by Bo Jangeborg whilst writing Flash! upped it to 128:

“I convinced them to do away with the hardware flash in the high colour modes. That allowed for a significantly larger pallet. I think it went from 64 to 128 colours. That also allowed me to transfer some pictures from the Atari without too big a degradation.”


line interrupt

can line interrupt change a palette colour
how many times could this occur on a single scan line please?

Palette change

Yes you can use line interrupt to change palette colour.

After a little test I have found you can change a palette cell up to 9 times in a scan line but only once before your out of border area and the last change will only effect the last few pixels. If you can write code in external memory you can change the colour 3 times in the border area and up 18 times in the line.







Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.