
BLITTER KEY POINTS
This is a list of some key points that should be remembered when programming the
blitter.
o Write BLTSIZE last; writing this register starts the blit.
o Modulos and pointers are in bytes; width is in words and height is in pixels. The least
significant bit of all pointers and modules is ignored.
o The order of operations in the blitter is masking, shifting, logical combination of sources,
area fill, and zero nag setting.
o In ascending mode, the blitter increments the pointers, adds the modules, and shifts to
the right.
o In descending mode, the blitter decrements the pointers, subtracts the modules, and
shifts to the left.
o Area fill only works correctly in descending mode.
o Check BLTDONE before writing blitter registers or using the results of a blit.
o Shifts are done on immediate data as soon as it is loaded.
EXAMPLE: ClearMem
;
; Blitter example - memory clear
;
include 'exec/types.i'
include 'hardware/custom.i'
include 'hardware/dmabits.i'
include 'hardware/blit.i'
include 'hardware/hw examples.i"
xref _custom
;
; Wait for previous blit to complete.
;
waitblit:
btst.b #DMAB_BLTDONE-8,DMACONR(a1)
waitblit2:
btst.b #DMAB_BLTDONE-8,DMACONR(a1)
bne waitblit2
rts
;
; This routine uses a side effect in the blitter. When each
- Blitter Hardware 195 -
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...