annotate defs/atari.d @ 2639:283433fa565c

Added notes to atari.d
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 28 Feb 2012 09:26:09 -0600
parents a34c08cdfcb2
children 928b4a062979
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
64 **********************************
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
65 * Power Line Frequency Definitions
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
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
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
70
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
71
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
72 **********************************
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
73 * Ticks per second
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
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
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
80
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
81
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
82 *************************************************
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
83 *
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
84 * NitrOS-9 Level 1 Section
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
85 *
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
86 *************************************************
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
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
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
89
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2621
diff changeset
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
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
104 G.DList equ G.ScrStart+(G.Cols*G.Rows)
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
105 G.DListSize equ 64
2621
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
106
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
107 * 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
108 * 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
109 * 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
110 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
111
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
112 * 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
113 * (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
114 * removed from os9defs)
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
115 D.IRQENShdw equ D.WDBtDr
2621
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
116
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
117
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
118 ********************************************************************
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
119 * 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
120 *
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
121 * 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
122 * 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
123 *
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
124
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
125
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
126 *************************************************
2621
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
127 ** CTIA/GTIA Address Equates
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
128 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
129
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
130 * Read/Write Addresses
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
131 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
132
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
133 * Read Addresses
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
134 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
135 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
136 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
137 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
138
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
139 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
140 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
141 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
142 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
143
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
144 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
145 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
146 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
147 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
148
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
149 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
150 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
151 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
152 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
153
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
154 TRIG0 equ CTIA+$10 ;joystick trigger 0
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
155 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
156
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
157 TRIG2 equ CTIA+$12 ;cartridge interlock
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
158 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
159
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
160 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
161
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
162 * Write Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
163 HPOSP0 equ CTIA+$00 ;player 0 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
164 HPOSP1 equ CTIA+$01 ;player 1 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
165 HPOSP2 equ CTIA+$02 ;player 2 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
166 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
167
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
168 HPOSM0 equ CTIA+$04 ;missle 0 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
169 HPOSM1 equ CTIA+$05 ;missle 1 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
170 HPOSM2 equ CTIA+$06 ;missle 2 horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
171 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
172
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
173 SIZEP0 equ CTIA+$08 ;player 0 size
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
174 SIZEP1 equ CTIA+$09 ;player 1 size
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
175 SIZEP2 equ CTIA+$0A ;player 2 size
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
176 SIZEP3 equ CTIA+$0B ;player 3 size
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
177
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
178 SIZEM equ CTIA+$0C ;missle sizes
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
179
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
180 GRAFP0 equ CTIA+$0D ;player 0 graphics
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
181 GRAFP1 equ CTIA+$0E ;player 1 graphics
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
182 GRAFP2 equ CTIA+$0F ;player 2 graphics
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
183 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
184
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
185 GRAFM equ CTIA+$11 ;missle graphics
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 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
188 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
189 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
190 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
191
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
192 COLPF0 equ CTIA+$16 ;playfield 0 color/luminance
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
193 COLPF1 equ CTIA+$17 ;playfield 1 color/luminance
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
194 COLPF2 equ CTIA+$18 ;playfield 2 color/luminance
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
195 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
196
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
197 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
198
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
199 PRIOR equ CTIA+$1B ;priority select
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
200 VDELAY equ CTIA+$1C ;vertical delay
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
201 GRACTL equ CTIA+$1D ;graphic control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
202 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
203
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
204
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
205 *************************************************
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
206 ** POKEY Address Equates
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
207 POKEY equ $D200 ;POKEY area
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
208
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
209 *Read Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
210 POT0 equ POKEY+$00 ;potentiometer 0
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
211 POT1 equ POKEY+$01 ;potentiometer 1
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
212 POT2 equ POKEY+$02 ;potentiometer 2
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
213 POT3 equ POKEY+$03 ;potentiometer 3
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
214 POT4 equ POKEY+$04 ;potentiometer 4
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
215 POT5 equ POKEY+$05 ;potentiometer 5
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
216 POT6 equ POKEY+$06 ;potentiometer 6
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
217 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
218
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
219 ALLPOT equ POKEY+$08 ;potentiometer port state
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
220 KBCODE equ POKEY+$09 ;keyboard code
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
221 RANDOM equ POKEY+$0A ;random number generator
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
222 SERIN equ POKEY+$0D ;serial port input
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
223 IRQST equ POKEY+$0E ;IRQ interrupt status
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
224 IRQST.BREAKDOWN equ %10000000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
225 IRQST.KEYDOWN equ %01000000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
226 IRQST.SERINRDY equ %00100000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
227 IRQST.SEROUTNEEDED equ %00010000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
228 IRQST.SEROUTDONE equ %00001000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
229 IRQST.TIMER4 equ %00000100
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
230 IRQST.TIMER2 equ %00000010
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
231 IRQST.TIMER1 equ %00000001
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
232
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
233 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
234
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
235 * Write Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
236 AUDF1 equ POKEY+$00 ;channel 1 audio frequency
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
237 AUDC1 equ POKEY+$01 ;channel 1 audio control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
238
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
239 AUDF2 equ POKEY+$02 ;channel 2 audio frequency
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
240 AUDC2 equ POKEY+$03 ;channel 2 audio control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
241
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
242 AUDF3 equ POKEY+$04 ;channel 3 audio frequency
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
243 AUDC3 equ POKEY+$05 ;channel 3 audio control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
244
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
245 AUDF4 equ POKEY+$06 ;channel 4 audio frequency
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
246 AUDC4 equ POKEY+$07 ;channel 4 audio control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
247
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
248 AUDCTL equ POKEY+$08 ;audio control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
249 STIMER equ POKEY+$09 ;start timers
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
250 SKRES equ POKEY+$0A ;reset SKSTAT status
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
251 POTGO equ POKEY+$0B ;start potentiometer scan sequence
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
252 SEROUT equ POKEY+$0D ;serial port output
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
253 IRQEN equ POKEY+$0E ;IRQ interrupt enable
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
254 IRQEN.BREAKDOWN equ %10000000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
255 IRQEN.KEYDOWN equ %01000000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
256 IRQEN.SERINRDY equ %00100000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
257 IRQEN.SEROUTNEEDED equ %00010000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
258 IRQEN.SEROUTDONE equ %00001000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
259 IRQEN.TIMER4 equ %00000100
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
260 IRQEN.TIMER2 equ %00000010
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
261 IRQEN.TIMER1 equ %00000001
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
262
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
263 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
264 SKCTL.FORECEBREAK equ %10000000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
265 SKCTL.SERMODECTRLMASK equ %01110000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
266 SKCTL.TWOTONEMODE equ %00001000
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
267 SKCTL.FASTPOTSCAN equ %00000100
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
268 SKCTL.KEYBRDSCAN equ %00000010
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
269 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
270
f27161fc2926 Added atari.d... new defs file for all things Atari
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
271
2639
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
272 *************************************************
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
273 ** PIA Address Equates
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
274 PIA equ $D300 ;PIA area
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
275
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
276 * Read/Write Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
277 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
278 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
279
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
280 PACTL equ PIA+$02 ;port A control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
281 PBCTL equ PIA+$03 ;port B control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
282
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
283 * PIA bit assignments for XEGS:
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
284 * 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
285 * 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
286 *
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
287 * bit 1 0 = Basic switched in
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
288 * 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
289
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
290
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 ** ANTIC Address Equates
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
293 ANTIC equ $D400 ;ANTIC area
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
294
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
295 * Read Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
296 VCOUNT equ ANTIC+$0B ;vertical line counter
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
297 PENH equ ANTIC+$0C ;light pen horizontal position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
298 PENV equ ANTIC+$0D ;light pen vertical position
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
299 NMIST equ ANTIC+$0F ;NMI interrupt status
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 * Write Addresses
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
302 DMACTL equ ANTIC+$00 ;DMA control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
303 CHACTL equ ANTIC+$01 ;character control
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
304 DLISTL equ ANTIC+$02 ;low display list address
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
305 DLISTH equ ANTIC+$03 ;high disply list address
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
306 HSCROL equ ANTIC+$04 ;horizontal scroll
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
307 VSCROL equ ANTIC+$05 ;vertical scroll
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
308 PMBASE equ ANTIC+$07 ;player-missle base address
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
309 CHBASE equ ANTIC+$09 ;character base address
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
310 WSYNC equ ANTIC+$0A ;wait for HBLANK synchronization
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
311 NMIEN equ ANTIC+$0E ;NMI enable
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
312 NMIRES equ ANTIC+$0F ;NMI interrupt status reset
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
313
283433fa565c Added notes to atari.d
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2634
diff changeset
314 endc