Appendix Three



Dec.
Hex.
#
Label
Use of the Location(s)
2
6
7
10
12
14
16
18
48
54
55
66
73
77
82
83
84
85
87
88
106
128
130
132
134
136
140
142
144
186
195
201
212
224
237
238
239
241
251
512
528
530
532
534
546
548
559
560
580
623
624
632
636
644
656
657
660
694
702
703
704
708
736
738
741
743
752
756
763
764
768
794
832
40954
40958
49146
49150
53248
53252
53256
53260
53266
53270
53274
53277
53278
53279
53760
53768
53769
53770
53774
54272
54276
54277
54279
54281
54282
54283
54286
58460
58463
58466
2
6
7
A
C
E
10
12
30
36
37
42
49
4D
52
53
54
55
57
58
6A
80
82
84
86
88
8C
8E
90
BA
C3
C9
D4
E0
ED
EE
EF
F1
FB
200
210
212
214
216
222
224
22F
230
244
26F
270
278
27C
284
290
291
294
2B6
2BE
2BF
2C0
2C4
2E0
2E2
2E5
2E7
2F0
2F4
2FB
2FC
300
31A
340
9FFA
9FFE
BFFA
BFFE
D000
D004
D008
D00C
D012
D016
D01A
D01D
D01E
D01F
D200
D208
D209
D20A
D20E
D400
D404
D405
D407
D409
D40A
D40B
D40E
E45C
E45F
E462
2
1
1
2
2
2
1
3
1
1
1
1
1
1
1
1
1
2
1
2
1
2
2
2
2
2
2
2
2
2
1
1
6
6
1
1
1
1
1
2
2
2
2
2
2
2
2
2
1
1
8
4
8
4
1
2
2
1
1
1
4
5
2
2
2
2
1
1
1
1
16
38
128
2
2
2
2
4
4
4
1
4
4
1
1
1
1
8
1
1
1
1
1
1
1
1
1
1
1
1
3
3
3
CASINI
TRAMSZ
TSTDAT
DOSVEC
DOSINI
APPMHI
POKMSK
RTCLOK
STATUS
CRETRY
DRETRY
CRITIC
ERRNO
ATRACT
LMARGN
RMARGN
ROWCRS
COLCRS
DINDEX
SAVMSC
RAMTOP
LOMEM
VNTP
VNTD
VVTP
STMTAB
STARP
RUNSTK
MEMTOP
STOPLN
ERRSAV
PTABW
FR0
FR1
EEXP
NSIGN
ESIGN
DIGRT
DEGFLG
VDSLST
VTIMR1
VTIMR2
VTIMR4
VIMIRQ
VVBLKI
VVBLKD
SDMCTL
SDLSTL
COLDST
GPRIOR
PADDLx
STICKx
PTRIGx
STRIGx
TXTROW
TXTCOL
TXTMSC
INVFLG
SHFLOK
BOTSCR
PCOLRx
COLORx
RUNAD
INITAD
MEMTOP
MEMLO
CRSINH
CHBAS
ATACHR
CH
misc.
HATABS
IOCBx
 
 
 
 
HPOSPx
HPOSMx
SIZEPx
SIZEM
COLPMx
COLPFx
COLBK
GRACTL
HITCLR
CONSOL
AUDxx
AUDCTL
STIMER
RANDOM
IRQEN
DMACTL
HSCROL
VSCROL
PMBASE
CHBASE
WSYNC
VCOUNT
NMIEN
SETVBV
SYSVBV
XITVBV
Cassette initialization vector
Equals 1 if A cartridge present
Equals 1 if B cartridge present
Disk software start vector
Disk boot initialization address
Top of applications memory
POKEY interrupts enabled
Real-time clock
Internal SIO status storage location
# of retries of commands
# of device retries
Critical I/O flag during VBI
Disk I/O error number
If > 127, screen colors rotate
Left margin of screen
Right margin of screen
Current cursor row
Current cursor column
Current screen graphics mode
Address of screen memory
RAM size in pages
BASIC's bottom of memory pointer
Address of variable name table
End of variable name table + 1
Address of variable value table
Address of BASIC statement table
String & array table pointer
Address of BASIC run-time stack
Top of BASIC memory
Line # where program stopped
Error code #
Columns between TABs
Floating point register 0
Floating point register 1
Value of exponent
Sign of floating point number
Sign of exponent
# digits to right of decimal
For radians = 0, for degrees = 6
NMI DLI vector
POKEY timer 1 interrupt vector
POKEY timer 2 interrupt vector
POKEY timer 4 interrupt vector
IRQ immediate vector
VBLANK immediate vector
VBLANK deferred vector
Direct Memory Access enable
Address of display list
If = 0, warmstart; if = 1, coldstart
Priority register - shadows $D01B
Paddle values - shadow $D200-D207
Joystick values - shadow $D300-D301
Paddle triggers - shadow $D300-D301
Stick triggers - shadow $D010-D013
Text window cursor row
Text window cursor column
Address of text window
If = 0, characters normal; if = 128, inverse
If = 0, lower case; if = 64, upper case
# text rows in text window
Player-missile color
Playfield color
Run address from disk
Initialization address from disk
Top of free memory
Bottom of free memory
If = 0, cursor on; if > 0, cursor off
Character set base register
Stores color for FILL and DRAWTO
Stores last character pressed
Disk control block
Handler table
Input/Output Control Blocks
B cartridge start address
B cartridge initialization address
A cartridge start address
A cartridge initialization address
Horizontal position of player x
Horizontal position of missile x
Size of player x; 0, 1 or 3
Size of all missiles
Hardware player color registers
Hardware playfield color registers
Hardware background color register
Graphics control register
Clears collision registers
3 console buttons
Audio frequency and control registers
Audio control
Start the POKEY timers
Reads a random number 0-255
Interrupt request enable
Direct Memory Access control
Horizontal scroll enable
Vertical scroll enable
Address of PMBASE
Address of character base
Wait for horizontal synchchronization
Line being drawn/2
NMI enable
Set VBLANK vectors
VBLANK stage 1 entry
VBLANK exit


Notes: 1. # refers to the length of the address, in bytes
           2. x refers to several related addresses; e.g., STICKx


Return to Table of Contents | Previous Chapter