A.D.A. Amiga Demoscene Archive

  Welcome guest! Please register a new account or log in

  

  

  

Demos Amiga Demoscene Archive Forum / Coding / Colorswitching via BPLCON4 in HAM8-Mode

 

Author Message
dissident
Member
#1 - Posted: 4 Jun 2009 19:26
Reply Quote
I tried to code a vertical screensplit with two HAM8 160x256 pixel pictures. The first (left) one should colour 0-64 the second one colour 64-127.
But the colorswitching doesn't work. The colours 64-127 are not used. After the switch with the value 64 the second (right) HAM8 picture uses the colours 0-63 but not in the right order.
Funnily enough the same routine works fine on a Screen with 128 colors and 7 bitplanes. The first picture uses colours 0-127 the second one colours 128-255.
So what can I do ? Or in other words is the use of colorswitching via the bplcon4 register really possible on HAM8 screens?
dissident
Member
#2 - Posted: 7 Jun 2009 10:15
Reply Quote
Completion to Colorswitching via BPLCON4 in HAM8-Mode

Meanwhile I tested the colourswitch on a HAM6 screen. It is apparent that the content of the BPLCON4 register is totally ignored when you change it every scanline with the copper. The second (right) picture uses exactly the same palette (colours 0-15) as the first (left) one.
I know that HAM pixels behave different than normal pixels but strange that it doesn't work. I thought selecting a colour value from a colour registers by the value 00 in the modify planes works the same way as on standard screens. Messing up the palette of the second picture on a HAM8 screen seems to be a side effect using plane 0-1 for modify and not plane 6-7.
rload
Member
#3 - Posted: 7 Jun 2009 10:33
Reply Quote
Pity it doesn't work. Is it on a real Amiga or on WinUAE?
dissident
Member
#4 - Posted: 14 Jun 2009 10:42
Reply Quote
Hi rload,

it's on a real Amiga 1200. I haven't tested my routine on WinUAE yet.
winden
Member
#5 - Posted: 22 Sep 2009 21:01 - Edited
Reply Quote
A few quick checks:

- e-uae sourcecode confirms that both ham8 and ham6 modes ignore the xor value stored in bplcon4.

- minimig doesn't support aga, so there is no trace of bplcon4

 

  Please register a new account or log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0