
NOTE
The offset values of the registers are the addresses that the Copper must use to talk to
the registers. For example, in assembler:
INCLUDE "exec/types.i"
INCLUDE "hardware/custom.i"
XREF custom ; External reference
Start: lea _custom,a0 ; Use a0 as base register
move.w #$7FFF,intena(a0) ; Disable all interrupts
In C, you would use the structure definitions in hardware/custom.h For
example:
#include "exec/types.h"
#include "hardware/custom.h"
extern struct Custom custom;
/* You may need to define the above external as
** extern struct Custom far custom;
** Check you compiler manual.
*/
main()
{
custom.intena = 0x7FFF; /* Disable all interrupts */
}
The Amiga hardware include files are generally supplied with your compiler or assembler.
Listings of the hardware include files may also be found in the Addison-Wesley Amiga ROM
Kernel Manual "Includes and Autodocs". Generally, the include file label names are very
similar to the equivalent hardware register list names with the following typical
differences.
o Address registers which have low word and high word components are generally listed
as two word sized registers in the hardware register list, with each register name
containing either a suffix or embedded "L" or "H" for low and high. The include file label
for the same register will generally treat the whole register as a longword (32 bit)
register,
and therefore will not contain the "L" or "H" distinction.
o Related sequential registers which are given individual names with number suffixes in
the hardware register list, are generally referenced from a single base register definition
in the include files. For example, the color registers in the hardware list (COLOR00,
COLOR01, etc.) would be referenced from the "color" label defined in "hardware/custom.i"
(color+0, color+2, etc.).
o Examples of how to define the correct register offset can be found in the hw_examples.i
file listed in Appendix J.
- 8 Introduction -
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...