Sorry to resurrect an old thread, but this is relevant to what I'm doing at the moment.
I've just read the documentation regarding the collision control register and I've deciphered it to a degree.
I must not be quite 'getting' it, because Amos Pro has a Set Hardcol command which seems to be intended for the purpose of letting me get friendly with the CLXCON register.
Set Hardcol bitmap1,bitmap2
bitmap1 corresponds to bits 12-15, which are: -
15 - Enable collision detection, sprite 7
14 - Enable collision detection, sprite 5
13 - Enable collision detection, sprite 3
12 - Enable collision detection, sprite 1
Now, as I'm using sprite 0 as a 16-colour sprite, it combines with sprite 1 and I should set bit 12.
bitmap2 corresponds to bits 0-5, which are: -
5 - Bitplane 6 collision match bit
4 - Bitplane 5 collision match bit
3 - Bitplane 4 collision match bit
2 - Bitplane 3 collision match bit
1 - Bitplane 2 collision match bit
0 - Bitplane 1 collision match bit
Setting or clearing these lets me choose any bitplanes to ignore when checking for collisions. I'm using a dual-playfield screen (3 planes each) and I only want to check the front playfield for collisions. Because I haven't done my research, I'm guessing these are planes 4,5 and 6.
In testing, though, on a simple lowres screen of any amount of bitplanes, testing Hardcol(0) never results in a collision being reported.
Now, I'm using WinUAE and I have checked and re-checked that I have switched on full collision detection, but this really has me stumped.
Has anyone ever been successful in using Set Hardcol in this way?