Hi, regarding the Atari 400/800 Hardware Manual, Page III.8 and this http://www.atariarchives.org/cfn/12/02/0025.php the bits 0-3 in the PRIOR ($D01B) register controls the priorities of players, missiles and other graphics:
Objects with higher priority will appear to move in front of those with lower priority:
Bits 0-3 of PRIOR and P/M priorities
Bit 3=1 2=1 1=1 0=1 Prio
-----------------------------------------------------
C0 C0 PM0 PM0 highest (foreground)
C1 C1 PM1 PM1 priority
PM0 C2 C0 PM2 .
PM1 C3+P5 C1 PM3 .
PM2 PM0 C2 C0 .
PM3 PM1 C3+P5 C1 .
C2 PM2 PM2 C2 .
C3+P5 PM3 PM3 C3+P5 lowest (background)
BAK BAK BAK BAK priority
-----------------------------------------------------
In the chart:
PM0..3 = player 0 and missile 0
C0..3 = COLORx, plotted graphics controlled by color
register x in the SETCOLOR command.
P5 = all four missiles when combined into one player.
BAK = the background, known as COLOR4 or color
register 4 in the SETCOLOR command.
If I want to set all players and missiles into the background I set the value 4 (bit 2) into the PRIOR register. This works as described (ANTIC Mode 0x0E, 160x200 pixels, four colors):
(Horizontal stripes are the playfield colors 0-2, the missiles are the four right vertical stripes) But if I enable the fifth player by combining the missiles 0-3, the fifth player is always in the foreground:
(The combined fifth player is separated in the four right vertical blue stripes) Have I made something wrong or is there an error in the description of the Atari Hardware Manual ?
Perhaps an error in the Altirra emulator ? I will test this on real hardware.
Does exist a workaround for this problem ? How can I set the fifth player behind the playfield colors ?
Frank
PRIORTST.xex