[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

To use additional sprites, you must create a  data structure  for each one
and arrange the display as shown in the previous section, naming the
pointers  spr1pth and spr1ptl  for sprite dma channel 1,
 spr2pth and spr2ptl  for sprite dma channel 2, and so on.

   About sprite DMA.
   -----------------
   When you enable sprite DMA for one sprite, you enable DMA for all the
   sprites and place them all in  automatic mode . thus, you do not need
   to repeat this step when using additional sprite DMA channels.

Once the sprite DMA channels are enabled, all eight sprite pointers must
be initialized to either a real sprite or a safe null sprite. An
uninitialized sprite could cause spurious sprite video to appear.

Remember that some sprites can become unusable when additional DMA cycles
are allocated to displaying the screen, for example when an extra
 wide display  or  horizontal scrolling  is enabled (see
 figure 6-9: dma time slot allocation ).

Also, recall that each pair of sprites takes its color from different
color registers, as shown in Table 4-3.


                Table 4-3: Color Registers for Sprite Pairs


                    Sprite Numbers    Color Registers
                    --------------    ---------------
                       0 and 1            17 - 19
                       2 and 3            21 - 23
                       4 and 5            25 - 27
                       6 and 7            29 - 31

   Warning:
   --------
   Some sprites become unusable when additional DMA cycles are allocated
   to displaying the screen, e.g. when enabling an extra  wide display  or
    horizontal scrolling. (see  figure 6-9: dma time slot allocation .)

 sprite priority