![Commodore Amiga A1000 Hardware Reference Manual Download Page 115](http://html1.mh-extra.com/html/commodore/amiga-a1000/amiga-a1000_hardware-reference-manual_2643377115.webp)
hardware in the same manner as the original words that were first loaded into the control
registers. If the VSTART value contained in these words is lower than the current beam
position, this sprite will not be reused in this display field. For consistency, the value 0
should be used for both words when ending the usage of a sprite. Sprite reuse is
discussed later.
The following data structure is for the spaceship sprite. It will be located at V = 65 and H
= 128 on the normally visible part of the screen.
SPRITE:
DC.W $6D60, $7200 ;VSTART, HSTART, VSTOP
DC.W $0990, $07E0 ;First pair of descriptor words
DC.W $13C8, $0FF0
DC.W $23C4, $1FF8
DC.W $13C8, $0FF0
DC.W $0990, $07E0
DC.W $0000, $0000 ;End of sprite data
DISPLAYING A SPRITE
After building the data structure, you need to tell the system to display it. This section
describes the display of sprites in "automatic" mode. In this mode, once the sprite DMA
channel begins to retrieve and display the data, the display continues until the VSTOP
position is reached. Manual mode is described later on in this chapter.
The following steps are used in displaying the sprite:
1. Decide which of the eight sprite DMA channels to use (making certain that the chosen
channel is available).
2. Set the sprite pointers to tell the system where to find the sprite data.
3. Turn on sprite direct memory access if it is not already on.
4. For each subsequent display field, during the vertical blanking interval, rewrite the
sprite pointers.
CAUTION
If sprite DMA is turned off while a sprite is being displayed (that is, after VSTART but
before VSTOP), the system will continue to display the line of sprite data that was most
recently fetched. This causes a vertical bar to appear on the screen. It is recommended
that sprite DMA be turned off only during vertical blanking or during some portion of the
display where you are sure that no sprite is being displayed.
- 106 Sprite hardware -
Summary of Contents for Amiga A1000
Page 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Page 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Page 21: ...12 Introduction...
Page 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Page 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Page 101: ...92 Playfield Hardware...
Page 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Page 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Page 229: ...220 System Control Hardware...
Page 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Page 265: ...256 Interface Hardware...
Page 289: ...280 Appendix A...
Page 297: ...288 Appendix B...
Page 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Page 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Page 343: ...334 Appendix F...
Page 351: ...342 Appendix G...
Page 361: ...352 Appendix H...
Page 367: ...358 Appendix I...