[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

System Specification for C65Fred BowenMarch 1, 1991

An Example of How to Program the Color Palette for 1280 Pixel Resolution and Driving FGBG

In 1280 mode you must use 2 bitplanes to time-multiplex into 1. So, for example, lets use BPO for "early" bytes and BPI for "late" bytes.
76543210late BP1
76543210late BP1
7E7L6E6L5E5L4E4L3E3L2E2L1E1L0E0Lfinal output

The early pixels will be interleaved with the late ones, as shown. So, if you want to alter 1 pixel, you must decide which bitplane it will be in, and operate on its byte.

Make sure the H1280 control bit is set. If it is, BP7 will be forced low for an early pixel, and high for a late pixel. Let's program the palette to multiplex BP0 early and BP1 late and ignore BP2 and BP3. I want my background to be black, and image to be white, and, at the same time have BP3 drive a 640 pixel monochrome screen with the FGBG pin. (it too could be 1280 pixels).


[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated March 24, 2003.