home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / hardware / custom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  2.3 KB  |  115 lines

  1. #ifndef HARDWARE_CUSTOM_H
  2. #define HARDWARE_CUSTOM_H
  3. /*
  4. **    $Filename: hardware/custom.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*
  14.  * do this to get base of custom registers:
  15.  * extern struct Custom custom;
  16.  */
  17.  
  18.  
  19. struct Custom {
  20.     UWORD   bltddat;
  21.     UWORD   dmaconr;
  22.     UWORD   vposr;
  23.     UWORD   vhposr;
  24.     UWORD   dskdatr;
  25.     UWORD   joy0dat;
  26.     UWORD   joy1dat;
  27.     UWORD   clxdat;
  28.     UWORD   adkconr;
  29.     UWORD   pot0dat;
  30.     UWORD   pot1dat;
  31.     UWORD   potinp;
  32.     UWORD   serdatr;
  33.     UWORD   dskbytr;
  34.     UWORD   intenar;
  35.     UWORD   intreqr;
  36.     APTR    dskpt;
  37.     UWORD   dsklen;
  38.     UWORD   dskdat;
  39.     UWORD   refptr;
  40.     UWORD   vposw;
  41.     UWORD   vhposw;
  42.     UWORD   copcon;
  43.     UWORD   serdat;
  44.     UWORD   serper;
  45.     UWORD   potgo;
  46.     UWORD   joytest;
  47.     UWORD   strequ;
  48.     UWORD   strvbl;
  49.     UWORD   strhor;
  50.     UWORD   strlong;
  51.     UWORD   bltcon0;
  52.     UWORD   bltcon1;
  53.     UWORD   bltafwm;
  54.     UWORD   bltalwm;
  55.     APTR    bltcpt;
  56.     APTR    bltbpt;
  57.     APTR    bltapt;
  58.     APTR    bltdpt;
  59.     UWORD   bltsize;
  60.     UWORD   pad2d[3];
  61.     UWORD   bltcmod;
  62.     UWORD   bltbmod;
  63.     UWORD   bltamod;
  64.     UWORD   bltdmod;
  65.     UWORD   pad34[4];
  66.     UWORD   bltcdat;
  67.     UWORD   bltbdat;
  68.     UWORD   bltadat;
  69.     UWORD   pad3b[4];
  70.     UWORD   dsksync;
  71.     ULONG   cop1lc;
  72.     ULONG   cop2lc;
  73.     UWORD   copjmp1;
  74.     UWORD   copjmp2;
  75.     UWORD   copins;
  76.     UWORD   diwstrt;
  77.     UWORD   diwstop;
  78.     UWORD   ddfstrt;
  79.     UWORD   ddfstop;
  80.     UWORD   dmacon;
  81.     UWORD   clxcon;
  82.     UWORD   intena;
  83.     UWORD   intreq;
  84.     UWORD   adkcon;
  85.     struct  AudChannel {
  86.       UWORD *ac_ptr; /* ptr to start of waveform data */
  87.       UWORD ac_len;    /* length of waveform in words */
  88.       UWORD ac_per;    /* sample period */
  89.       UWORD ac_vol;    /* volume */
  90.       UWORD ac_dat;    /* sample pair */
  91.       UWORD ac_pad[2];    /* unused */
  92.     } aud[4];
  93.     APTR    bplpt[6];
  94.     UWORD   pad7c[4];
  95.     UWORD   bplcon0;
  96.     UWORD   bplcon1;
  97.     UWORD   bplcon2;
  98.     UWORD   pad83;
  99.     UWORD   bpl1mod;
  100.     UWORD   bpl2mod;
  101.     UWORD   pad86[2];
  102.     UWORD   bpldat[6];
  103.     UWORD   pad8e[2];
  104.     APTR    sprpt[8];
  105.     struct  SpriteDef {
  106.       UWORD pos;
  107.       UWORD ctl;
  108.       UWORD dataa;
  109.       UWORD datab;
  110.     } spr[8];
  111.     UWORD   color[32];
  112. };
  113.  
  114. #endif    /* HARDWARE_CUSTOM_H */
  115.