Mercurial > hg > Members > kono > nitros9-code
annotate defs/atari.d @ 2725:c2112f93923a lwtools-port
o dwio for Atari now uses routines in ROM, so dwread/dwrite stripped of Atari
o Added NMI code (as a conditional) to clock
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Tue, 31 Jul 2012 11:54:02 -0500 |
parents | 8399491c0821 |
children | ca65720ee373 |
rev | line source |
---|---|
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
1 ifne ATARI.D-1 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
2 ATARI.D set 1 |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
3 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
4 ******************************************************************** |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
5 * AtariDefs - NitrOS-9 System Definitions for the Atari XE/XL |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
6 * |
2625
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
7 * This is a high level view of the Atari XE/XL memory map as setup by |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
8 * NitrOS-9. |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
9 * |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
10 * $0000----> ================================== |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
11 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
12 * | NitrOS-9 Globals/Stack | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
13 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
14 * $0500---->|==================================| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
15 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
16 * | Atari | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
17 * $0500-$08BF | Screen Memory | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
18 * | (40x24) | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
19 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
20 * |----------------------------------| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
21 * $08C0-$08FF | ANTIC Display List | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
22 * $9000---->|----------------------------------| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
23 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
24 * . . . . . . . . . . . . . . . . . |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
25 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
26 * | RAM available for allocation | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
27 * | by NitrOS-9 and Apps | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
28 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
29 * . . . . . . . . . . . . . . . . . |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
30 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
31 * $C000---->|==================================| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
32 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
33 * $C000-$CFFF | ROM | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
34 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
35 * $D000---->|==================================| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
36 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
37 * | XEGS Memory Mapped I/O Region | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
38 * |(may differ in location on others)| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
39 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
40 * $D800---->|==================================| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
41 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
42 * $D800-$FFFF | ROM | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
43 * | | |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
44 * |==================================| |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
45 * |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
46 * Note that ROM above becomes RAM if booting from DriveWire. |
2625
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
47 * |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
48 * Atari Hardware is documented here: |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
49 * http://user.xmission.com/~trevin/atari/pokey_regs.html |
d1ea3dc90082
More progress... now booting with DriveWire
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2624
diff
changeset
|
50 * |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
51 * $Id$ |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
52 * |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
53 * Edt/Rev YYYY/MM/DD Modified by |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
54 * Comment |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
55 * ------------------------------------------------------------------ |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
56 * 2012/02/23 Boisy G. Pitre |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
57 * Started |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
58 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
59 nam AtariDefs |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
60 ttl NitrOS-9 System Definitions for the Atari XE/XL |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
61 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
62 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
63 |
2624 | 64 ********************************** |
65 * Power Line Frequency Definitions | |
66 * | |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
67 Hz50 equ 1 Assemble clock for 50 hz power |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
68 Hz60 equ 2 Assemble clock for 60 hz power |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
69 PwrLnFrq set Hz60 Set to Appropriate freq |
2624 | 70 |
71 | |
72 ********************************** | |
73 * Ticks per second | |
74 * | |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
75 ifeq PwrLnFrq-Hz50 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
76 TkPerSec set 50 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
77 else |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
78 TkPerSec set 60 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
79 endc |
2624 | 80 |
81 | |
82 ************************************************* | |
83 * | |
84 * NitrOS-9 Level 1 Section | |
85 * | |
86 ************************************************* | |
87 | |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
88 HW.Page set $FF Device descriptor hardware page |
2624 | 89 |
90 | |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
91 ******************************************************************** |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
92 * NitrOS-9 Memory Definitions for the Atari XE/XL |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
93 * |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
94 * The Atari's support chips have certain alignment restrictions for |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
95 * things like screen memory, display lists and character maps. For this |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
96 * reason, we reserve some low memory for the screen. |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
97 * |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
98 * Screen memory range is $0500-$08FF (1K). Of that, 40*24 (960) bytes |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
99 * are for the screen buffer and the remaining 64 bytes are for the |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
100 * ANTIC's Display List |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
101 G.Cols equ 40 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
102 G.Rows equ 24 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
103 G.ScrStart equ $0500 |
2649
928b4a062979
Atari: Made mods to the kernel to boot with new Liber809 firmware
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2639
diff
changeset
|
104 G.ScrEnd equ G.ScrStart+(G.Cols*G.Rows) |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
105 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
106 * The Character Set must be aligned to a 4K address. We can really only |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
107 * guarnatee that in the Krn module, which is always at the end of RAM. So |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
108 * for now, the character set is located at $F800 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
109 G.CharSetAddr equ $F800 |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
110 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
111 * POKEY requires shadow registers. We allocate them in the kernel's DP |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
112 * (Yes, we are stealing an existing variable that is so old it should be |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
113 * removed from os9defs) |
2725
c2112f93923a
o dwio for Atari now uses routines in ROM, so dwread/dwrite stripped of Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2714
diff
changeset
|
114 D.IRQENShdw equ $02 ; was D.WDBtDr |
c2112f93923a
o dwio for Atari now uses routines in ROM, so dwread/dwrite stripped of Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2714
diff
changeset
|
115 D.SKCTLShdw equ $03 ; was D.SWPage |
2656
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
116 |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
117 * The clock interrupt is driven by the unmaskable NMI. Therefore, |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
118 * the rbdw3 driver uses the DWIOSEMA flag in the D.ATARIFLAGS field as |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
119 * a signal, setting it before doing an DW operation and clearing it after. |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
120 * The clock ISR checks if this flag is set, and, if so, defers the OP_TIME |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
121 * command to the server. |
2ebf5e737ceb
Updated to address Atari port problems
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2650
diff
changeset
|
122 DWIOSEMA equ %10000000 |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
123 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
124 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
125 ******************************************************************** |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
126 * Atari XE/XL Hardware Definitions |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
127 * |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
128 * These were lifted from the Atari OS disassembly, and represents all |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
129 * of the hardware registers available on the Atari XE/XL |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
130 * |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
131 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
132 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
133 ************************************************* |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
134 ** CTIA/GTIA Address Equates |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
135 CTIA equ $D000 ;CTIA/GTIA area |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
136 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
137 * Read/Write Addresses |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
138 CONSOL equ CTIA+$1F ;console switches and speaker control |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
139 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
140 * Read Addresses |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
141 M0PF equ CTIA+$00 ;missle 0 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
142 M1PF equ CTIA+$01 ;missle 1 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
143 M2PF equ CTIA+$02 ;missle 2 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
144 M3PF equ CTIA+$03 ;missle 3 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
145 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
146 P0PF equ CTIA+$04 ;player 0 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
147 P1PF equ CTIA+$05 ;player 1 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
148 P2PF equ CTIA+$06 ;player 2 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
149 P3PF equ CTIA+$07 ;player 3 and playfield collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
150 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
151 M0PL equ CTIA+$08 ;missle 0 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
152 M1PL equ CTIA+$09 ;missle 1 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
153 M2PL equ CTIA+$0A ;missle 2 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
154 M3PL equ CTIA+$0B ;missle 3 and player collision |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
155 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
156 P0PL equ CTIA+$0C ;player 0 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
157 P1PL equ CTIA+$0D ;player 1 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
158 P2PL equ CTIA+$0E ;player 2 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
159 P3PL equ CTIA+$0F ;player 3 and player collision |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
160 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
161 TRIG0 equ CTIA+$10 ;joystick trigger 0 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
162 TRIG1 equ CTIA+$11 ;joystick trigger 1 |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2625
diff
changeset
|
163 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
164 TRIG2 equ CTIA+$12 ;cartridge interlock |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
165 TRIG3 equ CTIA+$13 ;ACMI module interlock |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
166 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
167 PAL equ CTIA+$14 ;PAL/NTSC indicator |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
168 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
169 * Write Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
170 HPOSP0 equ CTIA+$00 ;player 0 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
171 HPOSP1 equ CTIA+$01 ;player 1 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
172 HPOSP2 equ CTIA+$02 ;player 2 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
173 HPOSP3 equ CTIA+$03 ;player 3 horizontal position |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
174 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
175 HPOSM0 equ CTIA+$04 ;missle 0 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
176 HPOSM1 equ CTIA+$05 ;missle 1 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
177 HPOSM2 equ CTIA+$06 ;missle 2 horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
178 HPOSM3 equ CTIA+$07 ;missle 3 horizontal position |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
179 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
180 SIZEP0 equ CTIA+$08 ;player 0 size |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
181 SIZEP1 equ CTIA+$09 ;player 1 size |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
182 SIZEP2 equ CTIA+$0A ;player 2 size |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
183 SIZEP3 equ CTIA+$0B ;player 3 size |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
184 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
185 SIZEM equ CTIA+$0C ;missle sizes |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
186 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
187 GRAFP0 equ CTIA+$0D ;player 0 graphics |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
188 GRAFP1 equ CTIA+$0E ;player 1 graphics |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
189 GRAFP2 equ CTIA+$0F ;player 2 graphics |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
190 GRAFP3 equ CTIA+$10 ;player 3 graphics |
2634
a34c08cdfcb2
Stable dwread/dwrite... pipeman also assembles.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2625
diff
changeset
|
191 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
192 GRAFM equ CTIA+$11 ;missle graphics |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
193 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
194 COLPM0 equ CTIA+$12 ;player-missle 0 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
195 COLPM1 equ CTIA+$13 ;player-missle 1 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
196 COLPM2 equ CTIA+$14 ;player-missle 2 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
197 COLPM3 equ CTIA+$15 ;player-missle 3 color/luminance |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
198 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
199 COLPF0 equ CTIA+$16 ;playfield 0 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
200 COLPF1 equ CTIA+$17 ;playfield 1 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
201 COLPF2 equ CTIA+$18 ;playfield 2 color/luminance |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
202 COLPF3 equ CTIA+$19 ;playfield 3 color/luminance |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
203 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
204 COLBK equ CTIA+$1A ;background color/luminance |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
205 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
206 PRIOR equ CTIA+$1B ;priority select |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
207 VDELAY equ CTIA+$1C ;vertical delay |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
208 GRACTL equ CTIA+$1D ;graphic control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
209 HITCLR equ CTIA+$1E ;collision clear |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
210 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
211 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
212 ************************************************* |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
213 ** POKEY Address Equates |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
214 POKEY equ $D200 ;POKEY area |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
215 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
216 *Read Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
217 POT0 equ POKEY+$00 ;potentiometer 0 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
218 POT1 equ POKEY+$01 ;potentiometer 1 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
219 POT2 equ POKEY+$02 ;potentiometer 2 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
220 POT3 equ POKEY+$03 ;potentiometer 3 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
221 POT4 equ POKEY+$04 ;potentiometer 4 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
222 POT5 equ POKEY+$05 ;potentiometer 5 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
223 POT6 equ POKEY+$06 ;potentiometer 6 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
224 POT7 equ POKEY+$07 ;potentiometer 7 |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
225 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
226 ALLPOT equ POKEY+$08 ;potentiometer port state |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
227 KBCODE equ POKEY+$09 ;keyboard code |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
228 RANDOM equ POKEY+$0A ;random number generator |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
229 SERIN equ POKEY+$0D ;serial port input |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
230 IRQST equ POKEY+$0E ;IRQ interrupt status |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
231 IRQST.BREAKDOWN equ %10000000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
232 IRQST.KEYDOWN equ %01000000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
233 IRQST.SERINRDY equ %00100000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
234 IRQST.SEROUTNEEDED equ %00010000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
235 IRQST.SEROUTDONE equ %00001000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
236 IRQST.TIMER4 equ %00000100 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
237 IRQST.TIMER2 equ %00000010 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
238 IRQST.TIMER1 equ %00000001 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
239 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
240 SKSTAT equ POKEY+$0F ;serial port and keyboard status |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
241 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
242 * Write Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
243 AUDF1 equ POKEY+$00 ;channel 1 audio frequency |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
244 AUDC1 equ POKEY+$01 ;channel 1 audio control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
245 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
246 AUDF2 equ POKEY+$02 ;channel 2 audio frequency |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
247 AUDC2 equ POKEY+$03 ;channel 2 audio control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
248 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
249 AUDF3 equ POKEY+$04 ;channel 3 audio frequency |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
250 AUDC3 equ POKEY+$05 ;channel 3 audio control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
251 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
252 AUDF4 equ POKEY+$06 ;channel 4 audio frequency |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
253 AUDC4 equ POKEY+$07 ;channel 4 audio control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
254 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
255 AUDCTL equ POKEY+$08 ;audio control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
256 STIMER equ POKEY+$09 ;start timers |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
257 SKRES equ POKEY+$0A ;reset SKSTAT status |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
258 POTGO equ POKEY+$0B ;start potentiometer scan sequence |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
259 SEROUT equ POKEY+$0D ;serial port output |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
260 IRQEN equ POKEY+$0E ;IRQ interrupt enable |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
261 IRQEN.BREAKDOWN equ %10000000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
262 IRQEN.KEYDOWN equ %01000000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
263 IRQEN.SERINRDY equ %00100000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
264 IRQEN.SEROUTNEEDED equ %00010000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
265 IRQEN.SEROUTDONE equ %00001000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
266 IRQEN.TIMER4 equ %00000100 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
267 IRQEN.TIMER2 equ %00000010 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
268 IRQEN.TIMER1 equ %00000001 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
269 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
270 SKCTL equ POKEY+$0F ;serial port and keyboard control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
271 SKCTL.FORECEBREAK equ %10000000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
272 SKCTL.SERMODECTRLMASK equ %01110000 |
2714
8399491c0821
Reworked sources so that serial polling for the atari works.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2656
diff
changeset
|
273 SKCTL.SERMODEOUT equ %00100000 |
8399491c0821
Reworked sources so that serial polling for the atari works.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2656
diff
changeset
|
274 SKCTL.SERMODEIN equ %00010000 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
275 SKCTL.TWOTONEMODE equ %00001000 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
276 SKCTL.FASTPOTSCAN equ %00000100 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
277 SKCTL.KEYBRDSCAN equ %00000010 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
278 SKCTL.KEYDEBOUNCE equ %00000001 |
2621
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
279 |
f27161fc2926
Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
280 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
281 ************************************************* |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
282 ** PIA Address Equates |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
283 PIA equ $D300 ;PIA area |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
284 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
285 * Read/Write Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
286 PORTA equ PIA+$00 ;port A direction register or jacks 0 and 1 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
287 PORTB equ PIA+$01 ;port B direction register or memory control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
288 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
289 PACTL equ PIA+$02 ;port A control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
290 PBCTL equ PIA+$03 ;port B control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
291 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
292 * PIA bit assignments for XEGS: |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
293 * bit 7 0 = Self-Test switched in, but only if OS Rom is also switched in |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
294 * bit 6 0 = Missile Command @ $A000 but ony if Basic Rom is switched out |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
295 * |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
296 * bit 1 0 = Basic switched in |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
297 * bit 0 1 = OS Rom switched in, opposite behaviour for this bit vs all the others relating to Rom. |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
298 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
299 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
300 ************************************************* |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
301 ** ANTIC Address Equates |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
302 ANTIC equ $D400 ;ANTIC area |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
303 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
304 * Read Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
305 VCOUNT equ ANTIC+$0B ;vertical line counter |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
306 PENH equ ANTIC+$0C ;light pen horizontal position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
307 PENV equ ANTIC+$0D ;light pen vertical position |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
308 NMIST equ ANTIC+$0F ;NMI interrupt status |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
309 |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
310 * Write Addresses |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
311 DMACTL equ ANTIC+$00 ;DMA control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
312 CHACTL equ ANTIC+$01 ;character control |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
313 DLISTL equ ANTIC+$02 ;low display list address |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
314 DLISTH equ ANTIC+$03 ;high disply list address |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
315 HSCROL equ ANTIC+$04 ;horizontal scroll |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
316 VSCROL equ ANTIC+$05 ;vertical scroll |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
317 PMBASE equ ANTIC+$07 ;player-missle base address |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
318 CHBASE equ ANTIC+$09 ;character base address |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
319 WSYNC equ ANTIC+$0A ;wait for HBLANK synchronization |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
320 NMIEN equ ANTIC+$0E ;NMI enable |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
321 NMIRES equ ANTIC+$0F ;NMI interrupt status reset |
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
322 |
2650
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
323 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
324 ************************************************* |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
325 ** Display List Equates |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
326 ADLI equ $80 ;display list interrupt |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
327 AVB equ $40 ;vertical blank |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
328 ALMS equ $40 ;set screen data address |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
329 AVSCR equ $20 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
330 AHSCR equ $10 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
331 AJMP equ $01 ;jump |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
332 AEMPTY1 equ $00 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
333 AEMPTY2 equ $10 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
334 AEMPTY3 equ $20 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
335 AEMPTY4 equ $30 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
336 AEMPTY5 equ $40 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
337 AEMPTY6 equ $50 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
338 AEMPTY7 equ $60 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
339 AEMPTY8 equ $70 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
340 AMODE2 equ $02 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
341 AMODE3 equ $03 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
342 AMODE4 equ $04 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
343 AMODE5 equ $05 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
344 AMODE6 equ $06 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
345 AMODE7 equ $07 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
346 AMODE8 equ $08 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
347 AMODE9 equ $09 |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
348 AMODEA equ $0A |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
349 AMODEB equ $0B |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
350 AMODEC equ $0C |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
351 AMODED equ $0D |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
352 AMODEE equ $0E |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
353 AMODEF equ $0F |
538d8fdbaeba
Added fuji and ataridemo.dsk
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2649
diff
changeset
|
354 |
2639
283433fa565c
Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2634
diff
changeset
|
355 endc |