home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
commercial
/
asmonedemo
/
asm-one
/
include
/
hardware
/
cia.i
< prev
next >
Wrap
Text File
|
1995-03-16
|
2KB
|
117 lines
IFND HARDWARE_CIA_I
HARDWARE_CIA_I = 1
ciapra = $0000
ciaprb = $0100
ciaddra = $0200
ciaddrb = $0300
ciatalo = $0400
ciatahi = $0500
ciatblo = $0600
ciatbhi = $0700
ciatodlow = $0800
ciatodmid = $0900
ciatodhi = $0A00
ciasdr = $0C00
ciaicr = $0D00
ciacra = $0E00
ciacrb = $0F00
CIAICRB_TA = 0
CIAICRB_TB = 1
CIAICRB_ALRM = 2
CIAICRB_SP = 3
CIAICRB_FLG = 4
CIAICRB_IR = 7
CIAICRB_SETCLR = 7
CIACRAB_START = 0
CIACRAB_PBON = 1
CIACRAB_OUTMODE = 2
CIACRAB_RUNMODE = 3
CIACRAB_LOAD = 4
CIACRAB_INMODE = 5
CIACRAB_SPMODE = 6
CIACRAB_TODIN = 7
CIACRBB_START = 0
CIACRBB_PBON = 1
CIACRBB_OUTMODE = 2
CIACRBB_RUNMODE = 3
CIACRBB_LOAD = 4
CIACRBB_INMODE0 = 5
CIACRBB_INMODE1 = 6
CIACRBB_ALARM = 7
CIAICRF_TA = 1<<0
CIAICRF_TB = 1<<1
CIAICRF_ALRM = 1<<2
CIAICRF_SP = 1<<3
CIAICRF_FLG = 1<<4
CIAICRF_IR = 1<<7
CIAICRF_SETCLR = 1<<7
CIACRAF_START = 1<<0
CIACRAF_PBON = 1<<1
CIACRAF_OUTMODE = 1<<2
CIACRAF_RUNMODE = 1<<3
CIACRAF_LOAD = 1<<4
CIACRAF_INMODE = 1<<5
CIACRAF_SPMODE = 1<<6
CIACRAF_TODIN = 1<<7
CIACRBF_START = 1<<0
CIACRBF_PBON = 1<<1
CIACRBF_OUTMODE = 1<<2
CIACRBF_RUNMODE = 1<<3
CIACRBF_LOAD = 1<<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