]> git.sur5r.net Git - cc65/blob - asminc/cbm610.inc
Comment out the RegVal function using #if to get rid of the compiler warning
[cc65] / asminc / cbm610.inc
1 ;
2 ; Zeropage and I/O definitions for the CBM 610
3 ;
4 ; Taken from a kernal disassembly done by myself in 1987.
5 ;
6 ; Ullrich von Bassewitz, 28.09.1998
7
8
9 ; ---------------------------------------------------------------------------
10 ; Zeropage registers
11
12 ExecReg         = $00
13 IndReg          = $01
14
15 ; ---------------------------------------------------------------------------
16 ; Screen size
17
18 XSIZE           = 80
19 YSIZE           = 25
20
21 ; ---------------------------------------------------------------------------
22 ; I/O definitions
23
24
25 ; I/O  $d800: CRTC 6545
26
27 .struct CRTC
28         ADDR    .byte
29         DATA    .byte
30 .endstruct
31
32 ; I/O  $db00: CIA 6526 Inter Process Communication
33 ;
34 ;       IPCcia          =       $db00
35
36 .struct CIA
37         PRA     .byte
38         PRB     .byte
39         DDRA    .byte
40         DDRB    .byte
41         .union
42             .struct
43                 TALO    .byte
44                 TAHI    .byte
45             .endstruct
46             TA          .word
47         .endunion
48         .union
49             .struct
50                 TBLO    .byte
51                 TBHI    .byte
52             .endstruct
53             TB          .word
54         .endunion
55         TOD10   .byte
56         TODSEC  .byte
57         TODMIN  .byte
58         TODHR   .byte
59         SDR     .byte
60         ICR     .byte
61         CRA     .byte
62         CRB     .byte
63 .endstruct
64
65
66 ; I/O  $dc00: CIA 6526
67 ;
68 ;       cia             =       $dc00
69
70
71
72 ; I/O  $dd00: ACIA 6551
73 ;
74 ;       acia            =       $dd00
75
76 .struct ACIA
77         DATA    .byte
78         STATUS  .byte
79         CMD     .byte
80         CTRL    .BYTE
81 .endstruct
82
83
84 ; I/O  $de00: Triport #1 6525
85 ;
86 ;       tpi1            =       $de00
87
88 .struct TPI
89         PRA     .byte
90         PRB     .byte
91         .union
92                 PRC     .byte
93                 INT     .byte
94         .endunion
95         DDRA    .byte
96         DDRB    .byte
97         .union
98                 DDRC    .byte
99                 IMR     .byte
100         .endunion
101         CR      .byte
102         AIR     .byte
103 .endstruct
104
105
106 ; I/O  $df00: Triport #2 6525
107
108 ;       tpi2            =       $df00
109
110