-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcia.asm
48 lines (43 loc) · 1.03 KB
/
cia.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
Constants for the C64's 2 Complex Interface Adapters (CIA)
*/
.namespace cia {
.label VIC_BANK_MASK = %00000011
.label VIC_BANK_REVERSE_MASK = %11111100
.label BANK_0_MASK = %11
.label BANK_1_MASK = %10
.label BANK_2_MASK = %01
.label BANK_3_MASK = %00
.label CIAPRA = $dc00
.label CIAPRB = $dc01
.label CIDDRA = $dc02
.label CIDDRB = $dc03
.label TIMALO = $dc04
.label TIMAHI = $dc05
.label TIMBLO = $dc06
.label TIMBHI = $dc07
.label TODTEN = $dc08
.label TODSEC = $dc09
.label TODMIN = $dc0a
.label TODHRS = $dc0b
.label CIASDR = $dc0c
.label CIAICR = $dc0d
.label CIACRA = $dc0e
.label CIACRB = $dc0f
.label CI2PRA = $dd00
.label CI2PRB = $dd01
.label C2DDRA = $dd02
.label C2DDRB = $dd03
.label TI2ALO = $dd04
.label TI2AHI = $dd05
.label TI2BLO = $dd06
.label TI2BHI = $dd07
.label TO2TEN = $dd08
.label TO2SEC = $dd09
.label TO2MIN = $dd0a
.label TO2HRS = $dd0b
.label CI2SDR = $dd0c
.label CI2ICR = $dd0d
.label CI2CRA = $dd0e
.label CI2CRB = $dd0f
}