It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Could someone spoon feed through my first copper list in 30 years?
I'm trying to make a split screen display, the top half being a 320x128 16 colour screen and the bottom half being a 320x128 8 colour screen.
The thing I'm most troubled by are the wait instructions at the start and middle of the list, but I know there are other bits missing too.
This is what I have so far:
Code:
WORD copperList[] = {
0x0000, 0x0000, // wait for top of screen
BPLCON0, COLORON | 4, // 4 bit planes
BPL1PTH, NULL,
BPL1PTL, NULL,
BPL2PTH, NULL,
BPL2PTL, NULL,
BPL3PTH, NULL,
BPL3PTL, NULL,
BPL4PTH, NULL,
BPL4PTL, NULL,
COLOR00, 0x000, // Black
COLOR01, 0x8ce, // Sky Blue
COLOR02, 0xdb8, // Tan
COLOR03, 0x282, // Forest Green
COLOR04, 0xfff, // White
COLOR05, 0xaaa, // Lightest Grey
COLOR06, 0x999, // Light Grey
COLOR07, 0x777, // Medium Grey
COLOR08, 0x555, // Dark Grey
COLOR09, 0x444, // Darkest Grey
COLOR10, 0xf00, // Red
COLOR11, 0x800, // Dark Red
COLOR12, 0xf80, // Dark Orange
COLOR13, 0xfdb, // Wheat
COLOR14, 0x682, // Olive Drab
COLOR15, 0x59a, // Cadet Blue
0x0000, 0x0000, // wait for middle of screen
BPLCON0, COLORON | 3, // 3 bit planes
BPL1PTH, NULL,
BPL1PTL, NULL,
BPL2PTH, NULL,
BPL2PTL, NULL,
BPL3PTH, NULL,
BPL3PTL, NULL,
COLOR00, 0x000, // Black
COLOR01, 0xfff, // White
COLOR02, 0x999, // Light Grey
COLOR03, 0x777, // Medium Grey
COLOR04, 0x555, // Dark Grey
COLOR05, 0xf00, // Red
COLOR06, 0x0f0, // Green
COLOR07, 0x0f7, // Orange
0xffff, 0xfffe // end
};
Last edited by deimos; 22 September 2019 at 11:54.
|