home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / hardware / cia.e < prev    next >
Text File  |  1995-07-05  |  3KB  |  170 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. CONST CIAA_ADDR=$bfe001,
  5.       CIAB_ADDR=$bfd000
  6.  
  7. OBJECT cia
  8.   ciapra:CHAR
  9.   pad0a:CHAR
  10.   pad0b[$fe]:ARRAY
  11.   ciaprb:CHAR
  12.   pad1a:CHAR
  13.   pad1b[$fe]:ARRAY
  14.   ciaddra:CHAR
  15.   pad2a:CHAR
  16.   pad2b[$fe]:ARRAY
  17.   ciaddrb:CHAR
  18.   pad3a:CHAR
  19.   pad3b[$fe]:ARRAY
  20.   ciatalo:CHAR
  21.   pad4a:CHAR
  22.   pad4b[$fe]:ARRAY
  23.   ciatahi:CHAR
  24.   pad5a:CHAR
  25.   pad5b[$fe]:ARRAY
  26.   ciatblo:CHAR
  27.   pad6a:CHAR
  28.   pad6b[$fe]:ARRAY
  29.   ciatbhi:CHAR
  30.   pad7a:CHAR
  31.   pad7b[$fe]:ARRAY
  32.   ciatodlow:CHAR
  33.   pad8a:CHAR
  34.   pad8b[$fe]:ARRAY
  35.   ciatodmid:CHAR
  36.   pad9a:CHAR
  37.   pad9b[$fe]:ARRAY
  38.   ciatodhi:CHAR
  39.   pad10a:CHAR
  40.   pad10b[$fe]:ARRAY
  41.   unusedreg:CHAR
  42.   pad11a:CHAR
  43.   pad11b[$fe]:ARRAY
  44.   ciasdr:CHAR
  45.   pad12a:CHAR
  46.   pad12b[$fe]:ARRAY
  47.   ciaicr:CHAR
  48.   pad13a:CHAR
  49.   pad13b[$fe]:ARRAY
  50.   ciacra:CHAR
  51.   pad14a:CHAR
  52.   pad14b[$fe]:ARRAY
  53.   ciacrb:CHAR
  54. ENDOBJECT
  55.  
  56. CONST CIAPRA=0,
  57.       CIAPRB=$100,
  58.       CIADDRA=$200,
  59.       CIADDRB=$300,
  60.       CIATALO=$400,
  61.       CIATAHI=$500,
  62.       CIATBLO=$600,
  63.       CIATBHI=$700,
  64.       CIATODLOW=$800,
  65.       CIATODMID=$900,
  66.       CIATODHI=$A00,
  67.       CIASDR=$C00,
  68.       CIAICR=$D00,
  69.       CIACRA=$E00,
  70.       CIACRB=$F00,
  71.       CIAICRB_TA=0,
  72.       CIAICRB_TB=1,
  73.       CIAICRB_ALRM=2,
  74.       CIAICRB_SP=3,
  75.       CIAICRB_FLG=4,
  76.       CIAICRB_IR=7,
  77.       CIAICRB_SETCLR=7,
  78.       CIACRAB_START=0,
  79.       CIACRAB_PBON=1,
  80.       CIACRAB_OUTMODE=2,
  81.       CIACRAB_RUNMODE=3,
  82.       CIACRAB_LOAD=4,
  83.       CIACRAB_INMODE=5,
  84.       CIACRAB_SPMODE=6,
  85.       CIACRAB_TODIN=7,
  86.       CIACRBB_START=0,
  87.       CIACRBB_PBON=1,
  88.       CIACRBB_OUTMODE=2,
  89.       CIACRBB_RUNMODE=3,
  90.       CIACRBB_LOAD=4,
  91.       CIACRBB_INMODE0=5,
  92.       CIACRBB_INMODE1=6,
  93.       CIACRBB_ALARM=7,
  94.       CIAICRF_TA=1,
  95.       CIAICRF_TB=2,
  96.       CIAICRF_ALRM=4,
  97.       CIAICRF_SP=8,
  98.       CIAICRF_FLG=16,
  99.       CIAICRF_IR=$80,
  100.       CIAICRF_SETCLR=$80,
  101.       CIACRAF_START=1,
  102.       CIACRAF_PBON=2,
  103.       CIACRAF_OUTMODE=4,
  104.       CIACRAF_RUNMODE=8,
  105.       CIACRAF_LOAD=16,
  106.       CIACRAF_INMODE=$20,
  107.       CIACRAF_SPMODE=$40,
  108.       CIACRAF_TODIN=$80,
  109.       CIACRBF_START=1,
  110.       CIACRBF_PBON=2,
  111.       CIACRBF_OUTMODE=4,
  112.       CIACRBF_RUNMODE=8,
  113.       CIACRBF_LOAD=16,
  114.       CIACRBF_INMODE0=$20,
  115.       CIACRBF_INMODE1=$40,
  116.       CIACRBF_ALARM=$80,
  117.       CIACRBF_IN_PHI2=0,
  118.       CIACRBF_IN_CNT=$20,
  119.       CIACRBF_IN_TA=$40,
  120.       CIACRBF_IN_CNT_TA=$60,
  121.       CIAB_GAMEPORT1=7,
  122.       CIAB_GAMEPORT0=6,
  123.       CIAB_DSKRDY=5,
  124.       CIAB_DSKTRACK0=4,
  125.       CIAB_DSKPROT=3,
  126.       CIAB_DSKCHANGE=2,
  127.       CIAB_LED=1,
  128.       CIAB_OVERLAY=0,
  129.       CIAB_COMDTR=7,
  130.       CIAB_COMRTS=6,
  131.       CIAB_COMCD=5,
  132.       CIAB_COMCTS=4,
  133.       CIAB_COMDSR=3,
  134.       CIAB_PRTRSEL=2,
  135.       CIAB_PRTRPOUT=1,
  136.       CIAB_PRTRBUSY=0,
  137.       CIAB_DSKMOTOR=7,
  138.       CIAB_DSKSEL3=6,
  139.       CIAB_DSKSEL2=5,
  140.       CIAB_DSKSEL1=4,
  141.       CIAB_DSKSEL0=3,
  142.       CIAB_DSKSIDE=2,
  143.       CIAB_DSKDIREC=1,
  144.       CIAB_DSKSTEP=0,
  145.       CIAF_GAMEPORT1=$80,
  146.       CIAF_GAMEPORT0=$40,
  147.       CIAF_DSKRDY=$20,
  148.       CIAF_DSKTRACK0=16,
  149.       CIAF_DSKPROT=8,
  150.       CIAF_DSKCHANGE=4,
  151.       CIAF_LED=2,
  152.       CIAF_OVERLAY=1,
  153.       CIAF_COMDTR=$80,
  154.       CIAF_COMRTS=$40,
  155.       CIAF_COMCD=$20,
  156.       CIAF_COMCTS=16,
  157.       CIAF_COMDSR=8,
  158.       CIAF_PRTRSEL=4,
  159.       CIAF_PRTRPOUT=2,
  160.       CIAF_PRTRBUSY=1,
  161.       CIAF_DSKMOTOR=$80,
  162.       CIAF_DSKSEL3=$40,
  163.       CIAF_DSKSEL2=$20,
  164.       CIAF_DSKSEL1=16,
  165.       CIAF_DSKSEL0=8,
  166.       CIAF_DSKSIDE=4,
  167.       CIAF_DSKDIREC=2,
  168.       CIAF_DSKSTEP=1
  169.  
  170.