I loved this game! See also: https://github.com/XioNYC/StarRaiders
About Eric Asberry
Computer geek, software developer, writer, bicycle rider and occasional runner, if something scary is chasing me.
,
, T-
‘
r't
i !:•!.. f-
TARDAVL .76’ ..n*;.
TITLE 'STAR RAIDERS.
RAM
VERSION 25
1
STARDATE 26-JUL-79
'
GAME LONH.fc Hi
1 7-JUN--79
NOTES
•
O-IFFF
SPILL OVER ROM 9800-9FFF
'
E477G
i PROG START
ALPHA CHARACTERS
IN DMA ASCII
*CAP S « ASCII EOR $20
NUMBERS * ASCII
\F\£K
jqjCHAR.-- i£caa
^
20 CHAR <*CAPS, NUMBERS),
=> *CCQQ
20 CHAR (CAPS. LOWR CASE). = *CEOO
UNIVERSE LOOKS LIKE
-INFINITY
0
a*
jtlNFINHY
i
-1
J3IGN
00
01
him
00
GO
LOW BYTE
00
00
IF
FF
KEYCODE IS QRED WITH *C0
STRRAM MEMORY DEFINED
STRRAMt
0
1
2
3
4~
5-N
NtirfL-
TYPE
OBJO
OB jl
OBJ2
0BJ3
MISSLE
PLAY.
PLAY,
NOTES
ZYLON
_
ZYLON
PHOTON
PHOTON
_
PHOTON
STARS
EXPLOS STARS
rr
• rir* • • n—
0062
0063
0064
0065
0GuS6
N ISO IF
RESET
ATRACT
REPMSG
TIMOUT.
*$0062
****#*#*####****** POWER UP CLEARER RAM _ ****************
*“M IBS I ON D IFF I CULTY
i ONE SHOT CONSOL KEY
#*#+ 1
i GAME OVER FLAG *FF, ATRACT MODE
#**#*• 1
_
'
__
_
-
; R [rpEAx MESSAGE BYTE
j.
l ATRACT MODE TIMEOUT REG
_
= + 1
i r*«
I
r
i
I 1!
! i
.1 lif
i--’
,
I
i
i )rl
I
f
I
‘
1 j ii
j
I
.
,
f i
*•
.
-ir
uyjr> /
006 /
0068
006A
0063
006C
0060
006F
006F
0070
0071
0072
0073
0074
0075
0076
0077
0078
,
a ******** * ** * * * * * ** * <
*
* * ****** ***** ** * * * * * * * * * * * *******
P AG t.O
I •Mi'l iGS i
, NAi
I
it <.1R
VI.H. AIMh= 00
* — > 1
********** *** »*
TEMP REG (MM ******** a*****.*****#**
PN1 R
~ —
"
”
"
’
‘
0079
007
A
TEMP 1
TEMP2
TEMPO
*=*+2
_*=*+
1
#=*+1
; 2 BYTE MISC
TEMPOAR Y REG POINTER
JIMPQAfiY REGISTER
TEMP REG
TEMP4
NTEMP
*=*+1
*-*+1
”T»"'"r,"*"r
#**4-1
>TW1,
t*i
- — — -*
—
t
r yri
i NMJ TEMP REG
********************
quip CDircn dam
- 7 ~ 777 777 T"77~“
——
—
JI -S-S .£L.=-=
WWJ-WWTfFwirw -w-KW*********
‘
# ###•.»
«
ship speed ram
bPEED
i SPEED 0 CURISER
*=*+1
WARP gg|
I Ifg t SPEED DESIRED AS“6PP0SED TO SPEED 7 fHE PRESENT SPEED
—
;,urav
*«*#**##*#****#***# timers ram *********ii*^i^iii^tiii-
T1MERX
< USED FO STAR INTENSITY
*=*+t
ETIMER
SECOND
t«*+l
*=*+1
BSEQTM
*=* + 1
SlNflM
~
’
*
••• ••••:
..
.
BINNMI
#=e#+l
*=*+1
JMPTIM
*=*+1
T EXPLQSI ON T IMEQUT
i SECOND TIMEOUT
<~"rr
-T '
.
-
•
:
•
•
'•-,'•••••
i STARBASE SEQUENCER
tt -
i “BINARY TIMER
T. r-T '' -T’
f BINARY TIMER IN NMI
"""J
' *"• 1-11 "
•
—i «'
-
i TIME TO JUMP RAM LOC
^ ^ T rf r r 7::" r " « » ** »Mf w t»-*^*****#*#**
******************** 6TAR POINTER RAM **##**#*****«**#####
*jSJARA .J__!rAgT, BYTE OF, STAR RAM TO STORE, EITHER RMLAST OR STLAST
J
X ,r,Mm
•*to-
-
- - • --
•
CNSTAR
* LAST BYTE OF STAR RAM TO CLEAR
*=*+1
*#******
777'T^'T^Tu' uV'i> .. J'Z. ~
1j*e: "q
' :r
-
:rr: rrr:rr: -
*
-
-
##*
007B
BASFLG
007C
TRKFl.G
*=*+i
*=*+1
' 007D
•"
“
SHENER
007
E
ATENER
*W*+1
007F
ENFLAG
*K*+r
M> n a*L M
V'
*"** *' *"**" * "'r
******* ***«"»•'*«
^
*=*+1
0080
WpEner~~
f STAR BASE FLAG
_
i AUTO TRACKING = FF
i SHIELD ENERGY O'ORB
"
I attack computer energy
i LS BYTE OF ENERGY
, TELLS WHEN TO DEC ENERGY
* warp enrgy depends on “warp
ii
i r'M
fits i Lf K •;
VtK'.-l'IlN
.!
.
��� /iK U>"i
’
'£ JUl
tt=5# + 1
###*#****#***##*#*#*#£##**####********##**#***########*##**#
-i; #4j -hi H tt -ft
?4 if if -A
|
v
| 1. £>C
f
•! AM
# £
->H$"tt # •!» iHt-if*
008
1
SP ABAK
l
, SPACE BACKGROUND COLOR
0082
0084
008&
PH ITS
PHOFLQ
; PHOTON HIT DETECT REGS
l QNE SHOT PHOTON
PHOT I
M
1
#*#+
1
i REPEAT TIMEOUT
0086
0087
LOKL.OC
PHOTOG
*3S*+1
i PHOTON LOCK VECTOR PNTR
i PHOTON TOGGLE FLAG
0088
LOKWAT
•Jf =s if + I
i TIME BEFORE CAN LOCK AGAIN
0089
~~
OO0A
LOKTAR
•
'
;•
.i
‘
...
;
HITME
***+i
i INDEX OF LOCK ON TARGET
i
SHIP HIT FLAG
M
..
7
.
.
^=#+1
008
B
REDFLG
i RED ALERT FLAG
*=*+1
—
V
|.. i. .1
i| <
•~t
.
"•
,
i
•'
i
008C
GVPOS
ooai)
GHPOS
#=*+1
OOQE
HYVPQS
•
-
J y !7.|.
TT!
1
!
"
1 n
..
.
..
-
..
'
.
OOQF
»
.V.'V .Vv.'.v
v-
-.
•
•
HYHPOS
0090
QUADRT
#a*+l
0091
-~hyp£ng
'
'..r
•
*
-•
'•••
•
.
.
.
.
.
.• ...... v
.
’ ;
'
:
:
L
•
•
-•
.
0092
HYPQAD
.
.'*•••’
.'
••
* •"
•••
.
••
-s-
.
•,
.
..
..
..
*.;••;
‘
.'
•
•
#=»+
0093
KILBAS
*=*+1
0094
K I LOCH
"
'
.
'
;.••
••
.-•••
•.
..
,,
'
'•
.
;S ^.v;
•• •
-.
*w*+l
0095
K I LOCV
*=*+1
0096
JMPPTS
*=s#+9
009F
'
JMPQUT
•’
’
•
•
•
a#*#*##***##*#***#*#*# GALACTIC CHART RAH #«#**#*####*#*#**#
i CRUISER VPQS ON CHART
CRUSIER HPOS ON CHART
l CURSOR VPQS ON CHART
•'*." '••-.
V-
V
’ ;v -
••••'
•• •:•:
-Vs-
.
• ••-..
.
.'.
.
..
-•
•--••
.*".•!.
.
:
S-
...
.
.
4.V
.
:
-
•
-
•
"
..."
.’.•
i CURSOR HPOS ON CHART
i QUADRANT STAR RAIDER IS IN
i HYPERWARP ENERGY USED
........
. s
•
-Sv
T»"-rrpw";fr
••v- ;.v
;
-*St
I HYPERWARP QUADRANT
.*•'•.
.
...
....
.
.
.
..
•<
••
•
•
•
.
QUAD OF STARBASE. ZYLONS ARE AFTER
TTP*
i KILL LOC HPOS
.
•
V-
*" *" *"'V
i
s
-•
•
•
•
...
.....
.
.....!, \
'
.
••.*•.
-
•
•.
.
« K I LL LOC VPQS
i GRADIENT VALUES
*~#+I
* JUMP TIMEOUT REG
####*#*#****#**##*#######**####*###**##*#**#*###*#
•*rv rr* :t:"*
00AO
HTARGT
#*S#+1
OOAI
VTARGT
\
00A2
TARPTR
#sa*4
-l
00A3
LOKFLG
00A4
NUMPTS
#****#*######**#*** SCREEN MAP DRAWING RAM a**#**#*#*###*#*#*
i HORIZ TARGET POSIT
. ft. • •, y.
> VERT TARGET POSIT
i TARGET SEQUENCER
i COMPUTER LOCKON
7 NUMB ER OF P0 1 NTS TO DRAW
0
i OR
1
;A * Lf:.i T u
.<
R 0
• Hi
i
j )
i
i
.
'
•
*
» »
•
,
i.
4-
i
.
00A f>
VDRAW
i VERT POS OF DRAW CURSOR
A
‘
' —
* = H- * 1
1
00A6
HDRAW
i
HI JR PUS OF DRAW CURSOR
00A7
00A8
00AA
00AC
00At
00BG
00B 2
0038
OOBA
00BE
OOBF
*********##•#*****##
************* tf**#######•*#**#*****
****************** THINK RAM **************************
ZYTQOQ
SEQEN
3EQT in
XINDES
Y1NDES
ZINDES
XINPRS
BSTRAF
'rottTm
PHEXWT
ATTARG
i
...»
)
*=•* +
1
*~*+2
‘*=*+2
#- ,fr+2
* i»*+ J2
*=#+6
#=#+2
*»*+4
i WHICH ZYLON
i SEQUENCER PNTR RAM
r SEQUENCER TIMEOUT RAM
i DESIRED XINCRE
; DESIRED YINCRE
'
‘
> DESIRED ZINCRE
J_ PRESENT POINTER TQ ZYMABE
i STRAF BACK 0, OR
1
T^ROTAfrONTlFEQUf Llgf§®®g&
•*
*rm*> WWH- i ,yt»i-—
#*#+1
i WHICH ZYLON FIRED
#=*+1
ooco
HFLAG
#=*+1
OOC 1
HIBPED
*=*+1
00C2
~RfTHir'
*»*+l
00C3
HPNTR
OOC 4
HSTEER
*=*+1
ooc 5
VSTEER
.
•
.
v’vO''
-
*»*+l
OOC 6
STERMK
'**5+1*”
OOC 7
JMPMSK
i INIT
************************* HYPERWARP RAM *********************
i HYPERWARP ENGAGED FLAG, 00, FF, OR 7F
j HI BYTE SPEED, 0 OR 2=HWARP
i HWARP TIMER
i POINTS TO WH ICH LINE STARS TO LOAD
i OLD HWAR CURSOR HPQS
i OLD HWARP CURSOR VPQ
—«!'*> "|T'^' , '(—* #**' ’"f * "O^i
• ••
inr-
>
•
^rrv'i
tM»« ••
'
i STEER MASK
*=.*+1
OOC 8
HORJOY
OOC 9
VERJOY
~T=¥+"f
#=*+l
OOCA
OOCB
I^eKey
RATING
•
1
‘
n"/-. .. . Vy
'“~2*
OOC I)
ENDRAT
*=*+
OOCE
ENDCLS
*******************
KEYS, JOYSTICK RAM *********************
3 0=N0 HORIZ, Oi*R IGHT, FF*LEFT
i 0=N0 VERT * 01«D0WN, FF=UP
7 THE ^i^Y' IN KSCODg
•
•
•
-
..
!. (
’
’
’
‘
•
•
•
!
n
.
*
i
i
.
.•
... ...
• •
*•'"
'
•••>,
-.*•,•»
i YOUR RATING
3 FINAL RATING
“FfS^CLASS^*
"
"
—
ti
r 1
r i
Vi; l»
i OH
i
.i
++* ii *
OOCF
MEST
1
M
*=* + 1
00D0
DISFLG
#«•«•+
1
GOD 1
SENpTR
0GD2
00D3
00D4
odds
00D6
00D7
00D8
.0009
00DA
0GE0
odiT
Q0E2
00 l£3
00E4
00E9
OOEE
NOTSEQ
REPSEG
NDURAT
3DURAT
REPPTR
NDURTM
PHOREP
OODB
AUDEXP
•
•••...•
.>?. -.•• .
.• ,». . . x
•*•*
•
••• •*•••
;••
•<•
V
V,:
OODC
ATYPE2
GOOD
ATYPE3
OQDE
AFREQJ
00DF
AFREQ2
AUDADD
"audtTh
DIGEXP
i
.
#***#****iV»***fc*tf*#tf ******* *###***###'*##*****####*#************
-R-
d iS- P; ia #•#•# &•££-£•!<
MESSAGE RAM
irt •# rt- -S- # it # * it it it * # iHt -ft it -it## -it#######
i MESSAGE TIMEOUT
# DISPLAY TYPE FLAG O^FRQNT. I=BACK. 80=GALCHT
i 40=6ECT0R SCAN
J - SENTENCE POINTER
-
it* -it#*#*##*##**### * # # * ## #~*****#######**###*##**#****#******
***#»#*#####*## AUDIO RAM *##**####************#*#*#**#*
*ss*+l
#=S# + 1
;
.
i
:..r :*>..
'•/.'
‘‘
''
#**+1
-
—
-
»=»+l
••*•;•:
'v
..
../.
•-• v
• ••••••..••
....
...
.
.
.
...
.
.
•
•.•*:•
,
•
*•’*.
-
... ,
.
:
•
.
.
'
••
•'
''•
•
•
*•
•
#«#+i
•
•
..
^
.....
.......
....
.......
.....
•
•
;
•
•
•
-
•;•..
.
•
•
*=*+1
#s=*+l
.-T""--—*-—-r
—
—
lit i
f RAM
*=*+1
*=*+1
,
I
*•*
I
» nfwn'w.r*' **"
,-.
•
.
*w*+l
>•••;;•••
•
•«••.• ?
'•••.•
.....
....
^
y
••%•..
•.;..
•
'
.
"'•*
•“ •";•• •*•'•••
*=*+1
*=#+1
r*r mim
I’+T'TT*'
I AUD
*=*+1
/
.
:
'
;
.
...
'
••
:
•• ••• :•••
•*•
#=*-» 1
*==•»+!
i NOTE POINTER
^1 _J.„HQw .mm. 1 1NESJTfl REPEAT
i DURAT OF NOTE
7 PURAT OF SPACE
i WHERE TO REPEAT IN NQTETB
i NOTE TIMER
i .:
:
.
.
) NOTE VQLUHE
i REPAT NOTE FOR PHOTON
TlfxpTos sIrWceTimer
.
'
''
V
•
'7:
v
i RAM FOR AUDC3
""V T 1
., 1...
'»'
I
'n f^r*"r-rmvrw-wmwwi " ., :
i RAM FQ AUDFl
'
v
-
; "'X
,
'-y y ;•': •
i-
'£' vv .
.•;
•••••....
'
•
,
•
1
- 4..
i
.
;.
’ "••••
.
.
••,.•••:
••••
.•
•
.^-,v.;
;
,v. V.
rt au rnn Aimrri
; HOW MUCH TO ADD
7
ld TIMEOUT d^ALUbONE^
••
•-
•
:s
--
^
• •-
. v. s’i*.;. -. ..
.
•*.•
•
-vv
•
•
... .,....«.
.
.
i SHIELDS DOWN EXPLOS
GRAPH
*##****####*#*# OBJECT RAM *#*######*##*########*###*#*##
STFLAG
i
COLRAM
PHASP
4
i -GRAPHIC F0g„0|J0-4
; 0=0BJECT NOT ON (DEFINED IN THINK# OR PHOTON)
#-=•#+
5
*####*«*#*##
#**##•»#**#########f#**#***«***#«#*##
***#«*»*•#*#######« COLOR RAM ##*#####**####**##*******
'
i PLAYER AND PLAYFIELD COLOR RAM
__ _
.
#=*+14
#**###*****##*#*#* fr#* it**##*####***##########*###******
*
#
2
i‘ hP iiAi
i'j t ;
H
;
-v
•
•
i OM ?/
I
2 V.-^RO
H
1
(• 26- JUL
• .'v
1
ADDRESS SPACE
t
r
,
COLLEEN MNEMONICS
D200
D20G
i
POKEY
poto
*D200
POKEY *0
.
0201
0202
0203
P0T1
POT2
P0T3
POKE Y+
1
POKEY+2
PGKEY+3
D204
0205
D206
P0T4
*
POTS
P0T6
POKEY+4
POKEY+5
POKEY+6
D207
D2.08
1)209
POT 7
ALLPOT
=
KBCODE
=
POKEY+7
POKEY+8
JPO££Y±2
_
_
,
-
-
D20A
.
D20D
D20E
RANOQM *
SERIN
*
IRQST
*
P0KEY+1G
POKEY+13
FmsxtiA
- —
r
-
*
D20F
0200
0201
SKSTAT
*
AUDF1
AUDC1
POKEY+15
POKEY+O
,
pokey* 1
;JOU
,
.
™
.
—
0202
0203
0204
AUDF2
^
AUDC2
*
AUDF3
«i
PQKEY+2
POKEY+3
POKEY+4
^
1)205
0206
0207
AUDC3
AUDF4
»
AUDC4
POKEY+5
POKEY+6
POKEY+7
0208
0209
v
D20A
AUDCTL m
STIMER
».
SKRES
-
POKEY+B
POKEY+9
POKEY+ 10
0203
D200
D20E
PCITGO
=
SEROUT
=
IRQEN
=
POKEY+1
1
POKEY+13
POKEY+14
D20F
SKCTL
c
POKEY+1
5
0000
*
CTI A
w
•
••
••
•
.
.2
.'
•.
‘
...-
!••.!.•!*•!
•
•
•.
•
..
.
2
''
'
•
....
.* .*
./
,
...
‘
...
*
-i
$D000
0000
0001
0002
HPOSPO
��
HP0SP1
*
HP0SP2
=
CTIA+O
CTIA+1
CT I A+2
_
......
,..
^
0003
D004
0005
HPQSP3 «
HPOSMO
«
HPaSMl
«
CTIA+3
CTIA+4
CTIA+5
DO06
D007
0008
HP0SM2
=
HPQSM3
=
SIZEPO
=
CTIA+6
CTIA+7
CTIA+8
0009
DOOA
DOGS
SIZEP1
*”
SIZEP2
?=
SIZEP3
=
CTIA+9
CTIA+10
CTIA+1
1
DOOC
DOOD
DOOE
SIZEM
GRAFPO
=
GR AFP 1
=
CTIA+1
2
CTIA+13
CTIA+14
DOOF
0010
0011
GRAFP2
»
GRAFP3
m
GRAFM
CTIA+15
CTIA+16
CTIA+17
D012
0013
0014
COLPMO
*
C0L.PM1
*
C0LPM2
-
CTIA+1
8
CTIA+19
CTIA+20
D01
3
C0LPM3
*
CTIA+21
DO 1
6
COLPR)
CT I A *-22
DO 17
CGLPFt
5=
CTIA+23
k
DO 18
C0LPF2
—
C 'T I A * 2 4
DO 1
9
C0LPF3
CTIA+25
DO 1
A
COLBK
CTIA+26
DOIB
PRIOR
SS
CTIA+27
DO 1C
VDELAY
os
CTIA+28
DO ID
GRACTL.
Si
CTIA+29
bok
HITCLR
S3
CTIA+30
DO IF
CONSOL
=
CTIA+31
DOOO
MOPF
=
CTIA+O
DOOl
M1PF
a
CTIA+1
D002
M2FF
S3
criA+2
D003
M3PF
as
CTIA+3
boo4
POPF
as
CTIA+4
DOOO
P1PF
as
CTIA+5
D006
P2PF
S2L
CTIA+6
D007
P3PF
f*5
CTIA+7
D008
MOPL
as
CTIA+8
D009
MIPk
as
. CTIA+9
..
_
_
...
...
DOOA
M2PL
as
CTIA+10
DGOB
M3PL
mm
CTIA+ll
DOOC
POPL
as
CTIA+12
DOOD
P1PL
a
-
CTIA+13
DOOE
P2PL
a
CTIA+I4
DOOF
P3PL
*
CTIA+15
DOIO
TRIGO
ss
CTIA+16
DOl 1
TRIG1
a
CTIA+17
DO 12
TRIG2
=
CTIA+18
v
DO 13
TRIG3
i
ANTIC
a
CTIA+19
D400
a
.'- v '
•
.
•
•••
.
'
•
...
*
<
•
.
v
D400
DNACTL
SS
ANTIC+Q
D401
CHACTL
a
ANTIC
H
D402
DLISTL
=
ANTIC+2
D403
fO'STH~ SS
;
ANTIC+3
D404
HSCROL
a
ANTIC*4
:
D405
VSCROL
ss
ANTIC+5
D407
PMBASE
a
ANTIC+7
D409
CHBASE
a
ANTIC+9
D40A
WSYNC
a
ANTIC+10
D40B
~WoUNT
m "
ANTICt 1
1
D40C
PENH
ANTIC+12
D40D
PENV
a
ANTIC+13
D40E
NM I EN
a
ANTIC+14
D40F
.
NMIRES
a
ANTIC+1
5
D40F
NMIST
a
ANTIC+1
D3G0
pis
a
$D300
D300
PORTA
SB
PIA+O
D301
PORTB
M'
PIA+1
D302
PACTL
S5
PIA+2
D303
PBCTL
i
a
PIA+3
4
i
•
*
.
:
-
VIMIRQ
’•»
•
s.
,
.
•
1
• y 1
7Z*
.....
..
..
^
——
-
••
•
-
•
~~rr
-- • - -
—v— f
V
1
1
1
OPERATING SYSTEM
0216
a
.
*0216
) IMMEDITATE IRQ LOCATION
0222
VVBLKI
a
*0222
i IMMEDIATE VERT BLANK NMI VECTOR
0200
VDSLST
mm
$0200
i DISPLAY LIST NMI VECTOR
EOOO
ALPHA
a
$E000
•
•
B VAR I'AJi/CfVt
l ;4 R
] r.M
VI
! i
t
0202
028F
02DF
007
C
0032
0032
007
A
0656
0050
007
D
D ISP 1.1
DISPL2
DISPL3
D I STOP
VOFLOW
VS1CEN
VQBCEN
HOFLOW
HSTCEN
HOBCEN
EQUATES
DlSPLY+2
D1SPLY+1S
D 1SPLY+95
$7C
50
50
$7A
80
80
$7D
; LDISP
i LDISP
i LDISP
LDISP SUB.
0051
BCPTAB
=
81
k
t FOR LOADING PTAB
0064
SCBCD
S3
100
* FOR LOADING BCDCON
*
0028
5CVCQN
ss
40
1 FOR LOADING VCON TABLES
1D40
I CONI
53
$1D40
1BFE
IC0N2
—
$1BFE
003
HORCHT
SS.
$3D
i HOR EDGE OF CHART
Q03F
VERCHT
«
$3F
1 VERT EDGE OF CHART
OOOC
5TRNUM
W
12
i NUMBER OF STARS DISPLAYED
0005
OBJNUM
sr
3
l NUMBER OF OBJECTS
0020
EXPNUM
SIS
32
i NUMBER OF EXPLOSION STARS
003
1
RAMNUM
5=
OBJNUM+STRNUM+EXPNUM
t TOTAL NUMBER OF RAM LOC.
0004
OBLAST
S3
OBJNUM-1
i RAM LOC OF LAST OBJECT
0030
RMLAST
33
RAMNUM-
1
l ~Ram log of Pit star in explosion
0010
8TLAST
33
OBJNUMtSTRNUM -1
1 RAM LOC QF LAST STAR IN REAL 8TR8
0002
QBPHOT
3BS
OBJNUM-3
1 LAST photon LOCATION
0003
OBCOMP
S3
OBJNUM-2
i LAST PHOTON WHIG COULD BE COMP CONT.
1036
INSET
SS
$1B36
i 1ST BYTE OF INSET
0064
VMAX
ss
100
_
OOAO
I
’
"
| HMAX
«
'
S3
|S||
1
1
'*1 "
'"If*
1
f
'nfT*" •
•.*«
'
i—" « *' »ii
-
|
i
i
i
i
i
.
.
,
MAX HORIZ STAR POSITION DISPLAYED
OOAO
DBLUE
;
»
-4.
- V
- V
.
' V
V*
'V%S>.*%sv
$A0
t DARK BLUE
0044
RED
a
$44
i COLOR
0092
LTBLUE
55
$92
•
f COLOR
GOAF
BRTBLU
S3
$AF
i COLOR
004F
BRTRED
S5*
' $4F'" ;
.
v
''" J
‘
'
'
........
,mT'
rp-w-»p»T--f-»ny
•
..
r^-w.
COLOR
0060
DRKRED
a
$60
i COLO
0042
DIMRED
•••
$42
1 COLOR
0090
DIMBLU
3=
$90
i COLOR
0026
YELLOW
a
$26
i COLOR
0055
DIM
5=
$55
i MEMMAP CODE FOR DIM STAR
66AA
MED
SS
$AA
'
.
11
:
1
;
'
'V. '
'
"
'
'
'
'
'
‘'4'
OOFF
BRT
S3
$FF
0040
IRQMSK
$40
i KEY INTERRUPT MASK
1 7E3
NOSTAR
»
$17E3
i NO STAR DUING ATRACT
•
•
.
>•
.
.
'
•
••••*•
.
•
•v
•
•.
..
;
‘
'
• • ••
v • *
..
*
•
,
,
,
sj
.7'F!; v V '
’
‘
-
;
;•
•'
-V":'
'
.
:
•
'47,
.4
"/;
'4
.
..
.....
:
.
'44 :
.f
/
r
1
f
1
L A
^jVAf< P A i
(/•'*:. P'r!
•
1
' f.
1 UN
i-.-J
l.
->
' fi*' ()f i
i i
c.i
.•
‘Ui
CHARACTER GRAPHICS
tf-$AOOO
AOOO
AGCO
AQ03
A006
Aooa
ACOB
AOOE
A010
A01 6
AO 18
AO IE
A020
A023
AO26
A028
A02B
A02E
A030
A033
AO36
A038
AG3B
A03E
A040
A043
AO46
A04B
A04B
A04E
AQSO
A053
AO36
AO58
A05B
A05E
A060
A063
A066
AO68
AG6C
A06E
A070
A073
AO 7 6
A07B
A07B
A07E
00 7F 47
4 7 .47 47
47 7F
00 30 10
10 IQ. 38.
38 38
00 78 08
05
78 40
40 78
00 78 08
m 7C..J5CL
OC 7C
00 60 60
OC OC
00 78 40
40 78 08.
08 78
00 78 48
40 40 7E
42 7E
00 7C 44
04 1C Jj
0
"10 10
00 30 28
28 7C 6C
60 7C
•
00 7C 44
44 7C OC
oc’oc
00 00 00
00 00 00
00 00
*'
38 38 38
00 00 38
38 38
80 80 80
80 80 80
80 FF
00 3C 20
20 78 60
60 7C
00 66 99
99 99 66
oo oo'~
00 00 00
7E 00 00
oo oo
CGRAPH
CO
CEQ
. BYTE
00. $7F, $47, *47, $47, $47, $47, $7F
. BYTE
00, $30, $10, $10, $10, $38, $38, $38
v BYTE
00, $78, $08, $08, $78, $40, $40, $78
. BYTE
00, $78, $08, $08, $7C, $0C, $0C, $7C
; BYTE
00, $60, $60, $60, $6C, $7C, $0C, $0C
.
BYTE
00, $78, $40, $40, $78, $08, $08, $78
BYTE
CO, $78, $48, $40, $40, $7E, $42, $7E
. BYTE
00, $7C, $44, $04, $1C, $10, $10, $10
V BYTE
00, $38, $28, $28, $7C, $6C, $6C, $7C
. BYTE
00, $7C, $44, $44, $7C, $0C, $0C, $0C
CBl,K
BYTE
0, 0, 0, 0, 0, 0, 0, 0
. BYTE
$38, $38, $38, $00, $00, $3B, $38, $38
CGCBLK
. BYTE
$80, $80, $80, $80, $80, $80,
, frr
. BYTE
$00, $3C, $20, $20, $78, $60, $60, $7C
CINF
.
BYTE
$00, $66, $99, $99, $99. $66, $00, $00
CMINUS
,
BYTE
$00, $00, $00, $7E, $00, $00, $00, $00
r i
v
,
:
\
!
'
\
•"
<
;
t,
* r
f
•
tV:
!
’
!
J
; *!'
;
:
.'•il- l>r'i
I
i.
Ar
AOGO 00 18 18
CPI US
BYTE
TOO, $18, $18, $18, $7E, $18, $18, $18
AOG3
J 8 YE IS
A f )i:io 18
1 8
i"'088 00 18 76
CP HI
BYTE
$00, $10, $?E, $t)B, $99, $DB, $7E, $18
A08b DB 99 DB
AOGt: 7E 18
A090 66 66 66
cv
. BYTE
$66, $66, $66, $66, $66, $£C, $38, $30
A093 6,6 66 20
AO9 c, 30 30
AO98 00 7C 44
CRHO
. BYTE
0, $7C , $44, $44, $ 7C> $68, $6C, $6C
A09B 44 7C 68
A09E 6C 6C
AOAO 00 1C 3E
CTHETA
. BYTE
*00, *1C, *3E, *63, $5D, $63, $3E, $1C
AOA 3 63 5D 63
AOA6 3E 1C
AOA6 00 46 46
CK
. BYTE
$00, $46, $46, $44, $7C, $64, $66, $66
AOAB 44 7C 64
• 7
,
.
’
.7
:
* 7
V;
AGAE 66 66
37:;:7'V:r
’ 37
���••
AOBQ FE 92 10
CT
.BYTE
$FE, $92, $10, $18, $18, $18, $ 18, $18
AOB3 18 18 18
AOS 6 18 18
AOBE FC 8C 8C
CC
. BYTE
$FC, $8C, $QC, $80, $80, $80, $84, $FC
AOBB 80 BO 80
3*7.
'
3'
.
'7*7.
.’7-
.
..•
AODE 84 FC
AOCO 00 00 00
CHUNE
,
BYTE
0, 0, 0, 0, 0, 0. 0, *FF
A0C3 00 00 00
A0C6 00 FF
A0C8 80 80 80
C9L.INE
. BYTE
$80, $80, $80, $80, $80, $80, $80,
AOCB 80 80 80
7'f:
'
'T
.
;/
..
r. \
..7.
.
.77 ‘.'7.7:7’7
:’3
*7 7..
.
77 '
'
’•••••
AOCE 80 80 V
>•
377:37 v.;97. '7
"
:
37
.
? V"
>v
-
•
-
•
.
AODO 00 00 00
CDOT
.BYTE
0, Q,0,0, 0, 0, 0, $80
A0D3 00 00 00
A 01)6 00 80
AGDQ 80 AA 9C
CSBASE
. BYTE
$80, $AA, $9C, $BE, $9C, $AA, $80,
AODB BE 9C aa
3
t
3*
'>•
7737
•
"
37 .; \7...
'
>?
:
7
•'
4 7
"
'
AODE 80 FF
•
1
"
; 7'77./-
'
•:\7
-
: "7" T? 7 '3.,7 7 7 ' •
..
.
. 07
: 37
17; 77
V* 7
r:
:
*
:
'
AOEO 80 98 BO
CZY2
. BYTE
*80, *98, $80, $B6, $80, $8C, $80,
A0E3 06 80 8C
A0E6 GO FF
AOEQ 80 QE 80
CZY1
. BYTE
$80, $8E, $80, $B8, $80, $9C, $80,
AOEB B8 BO 9C
11
• 77
*
" "
9 -
AOEE 80 FF
AOFO 80 BO 98
CZY3
BYTE
$80, $B0, *98, *BE> *98, *B0, *80.
AOF3 BE 98 BO
A0F6 80 FF
r
r-
!*ry—-y-
l
i> T AJ: 1 >A
i t:
S
i AH
I
•' A 1
i
l :
i ‘ b
v[ A
;
. hiU >>
t
: 26 -
.*•
»l
t
A0F8
AOf8 00 00 6C
aofb 6F 6E 67
AOffc. 00 72 61
A 1 6
1
6E 67 65
A 104 00 73 63
A 107 61 6E
.
A 1 09
A 109 00 00 00
A IOC 00 .00, 00
A10F 61 66 74
At 12 00 76 69
A 1 15 65 77 00
Alia 00 00
A 1 1A
A1 1
A
00 00
Al 1C 00 67 61
A 1 IF 6C 61 63
A 122 74 69 63
A 125 00 63 68
Al 28 61
.
72 74
A12B 00
A12C 00 00
SESCAN
BACKUP
GALCHT
. BYTE
0, 0* *6C, *6F *6E, *67, 0, *72, *61, *6E, *67, *65, 0, *73, *63, *61, *6E
BYTE
0, 0, 0, 0, 0, 0, *61, *66, *74, 0, *76, *69, *65, *77, 0, 0, 0
.
*»*V f m
; BYTE 0,
0
, BYTE
0, *67, *61, *6C, *61, *63, *74, *69* *63, 0, *63, *68, *61, *72, *74, 0
TT-~
V-
•*
; BYTE
0, 0
.
- ,-v.
•
.
.
..
•
n
-v ; \
4-
A 1 2E
GLDISP
i GAL CHT DISPLAY LIST
A12E 60 46
’ ’•
‘
v !
, -v .•*•<•
•
. >,
.....
*
•
• .-•
.
A.
.Byte
:
*60, *46
A 130 1A Al
7
V
•*
•
v
S
.
...
...V.- .••
•
.
“
•
•
v-
v.v!
•
••
•.
.
.
...... ..
.
.
...
.
WORD
OALCHT
A 132 FO 47
...
_.
,
,
,
•• •
.• y
.
-
.
.
.
*
w
• ••
•
•.•-
....
.
...
*.
.
.
• BYTE
*F0, *47
* A 1 34 35 OD
. WORD
CHTDIS
A 136 07 07 07
. BYTE
7, 7, 7, 7, 7, 7, 7, 7, *80, *46
A 1 39 07 07 07
A 13C 07 07 S3
•
•
7.
s'
‘ 7, ‘..,7 7 ;
7''
...
.
•
•
•'
T 7.7 "
:
•
•
'
•
•
•
•
-X
-
’ 7 r
•"
i
:
..
;
;
���
77
'
.7
7-.
;;
.
V'7::7.;.': ,
:*.•••
-•
•
7".
.
..
-
•
/•• /•
A13F 46
'
'
'
’. 7' $
,
'
•
•
•• v
.
...
•
'
\v
.7
••
.7 ...7:
:
•
••
'
• ••••••
•
-
7
.7';;
'
•
.
‘
'
•
•
•
'
•
•
i
.
AMO IF OD
’
-
.
7
’’
'
.
WORD
MESAOE
A 1 42 46
. BYTE
$46
A 143 71 09
. WORD
DGALAC
A 1 45 06 06 41
. BYTE
6, 6, *41
A 148 80 02
",
"T?
.
’
•
s'*
>
s*
. . ••,*.•..
......
.
,
,
.
•
i
" 7 WORD
*•’,
••
7
'
"/•
DISPLY
-
.......
..
*
•
•
•
•
,••.*>•• .'••••
,
•
, ,
....... ..
•
•
...
.7’.
'
'
•
.
77
.*
7
.
’
7
,
-
1
•
•
•
,‘i 7
.
’
••
•
•
s
A14A
PHASES
£ I'AR
f« A 1 LHr't-'.
'
;
‘t; r
j Ai
J >•
'i
I
i
.
'('it
.y. i.
T
-j
*
H .1 *+H
A14A A9 00
A14C 0D OF D2
A14F 05 66
A151 85 62
A 153 85 63
A155 A9 03
A 157 8D OF D2
A15A
A15A AO 2F
A15C
A 1 50 A9 FF
A15E
A15E 84 65
A 160 85 64'
INI T
INIT3
l DA
5TA
STA
STA
STA
LDA
STA
LDY
TWIT SECTION
#$GG
SKCTL
TIMOUT
MISDIF
RESET
#$03
SKCTL
i RESET TIMEOUT
i M I SS I QND IFF ICULTY
i ONE SHOT CONSOL
i TURN POKEY ON
yy
* GAME SELECT* RESTART POINT a***************************
#SENATA-SENTAB
INIT4
LDA
* ATTRACT MODE RESTART POINT a*************************
#$FF
i GAME OVER
l
INIT1
§iv
i GAME START RESTART POINT a*##**###*#*********#**#
REPMSG
•
' ^
^
'
•
-
„ _
A 162 A9 00
A 164 AA
A165
A165 9D 00 DO
A i 68 9D 66 D4
A16B EO OF
INIT2
STA
ATRACT
CLEAR I/O
LDA
#$00
m
STA
CTIA* X
STA
CPX
ANTIC* X
#$0F
DONT RESET POKEY
A16D BO 03
BCS
INIT5
m’lH'y
Al6F 9D 00 D2
""STA
.
'
poRfY.jT
7E"
'
-
A172
A172
mm
STA
PIA* X
•••••v-v*.
A 175
A 176
A 178
9b
67 00
E8
. BYTE
.
WORD
INX
$9D
i STA ABS* X
PAGEO
i STAPAGEO*X
(ABSOLUTE)
A179 DO EA
>
i
-’’“BNi
?r
•
-V
.
.
Jn1T"2
I/O CLEARED
•'
‘
v‘‘;
'
;
•.
<
•
v*;'
. v
•
••
•
•
A 1 713 CA
i
DEX
i X=FF
A 1 7C 9A
TXS
i LOAD STACK PNTR
A17D DB
-•
•
| OLD i
A17E A9 02
1
LDA
••
..
v* •
....
s
.!
•
I,./';''!:
•»
-
....
.
‘
•RAMMAP/256
A 1 80 20 OF AE
i
JSR
CLRMP1
i CLEAR ALL RAM
LD VECTOR RAM
A 183 A9 51
LDA
# IRQVEC
A 185 8D 16 02
STA
VIMIRG
A 188 A9 A7
LDA
#IRGUEC/256
A18A 8D 17 02
STA
VIMIRG+1
A18D A9 D1
LDA
#VBNMI
A18F 8D 22 02
STA
WBLKI
A 1 92 A9 18
LDA
#DISNMI
A 194 8D 00 02
STA
VDSLST
A 197 A9 A6
LDA
#VBNMI/256
A199 8D 23 02
STA
WBLKI
A19C A9 A7
LDA
#DISNMI/256
A19E 8D 01 02
i
; r'fTTn. -T—
STA
VDSLST+1
ht
r-yi,—*"*-?--’
•
p
4 —
r
i
r i
L J
\j
; *'J<
rv A J
VL'iCvIOU
1
Vi
I AKDa 1 i
'*!tr jUi ..
•"
A t A 1 A ? 04
Al A3 8D 02 C>3
AiBO 20 BA
13
LDA
STA
A1A6 A9 11
L
A1A8 QD IB bo
S
,
i
A1 AB A9 03
L
A 1 AD 8D ID DO
S
CONFIGURE P I
A
#*04
pAC ri.
CONFIGURE CTIA
J$y
PRIOR
jfoa^
iL
GRACTL
U3 .IABS—-
i TURN ON JOYS! ICK
;
•••••
A 1 8 3 A2 OA
A1D0 20 40 BO
A1B8 AO 64
A1BA 29 80
A1BC A8
A1BD A2_0F
A1BF A9 OB
A1C 1 20 FI AD
A 1C 4 A920
~
A1C6 85 71
^
LDX
JSR
LDA
AND
TAY
iftL
LDA
JSR
Ida
"
sta
#$0A
KEYS 15
ATRACT
#$80
#$08
LDISP
t
»
'i
* 'ri^fr»
i
#$20
WARP
i KEY F, FRONT DISPLAY
j INIT FRONT VIEW
# SHIP ALIVE OR DEAD
1 WARP 9 SPiPP
CONFIGURE ANTIC
A1C8 A9 80
A1CA 8D 02 D4
A1CD A9 02
A 1 CF 8D 03 D4
A1D2 A9 3E
A1D4 BD 00 D4
AID? A9 00
A1D9 BD 07 D4
LDA
STA
LDA
STA
LDA
STA
’HM.l «»<
LDA
STA
#DIBPLY
DLISTL
#DISPLY/256
_
DLISTH
#$3E
DMACTL
i
#PQRAPH~*0300/256
PtlSASI
2 MlSSl-i 1ASE
A1DC _A9 10
AIDE 85 79
A1E0 A6 82
A1E2 BC OC BF
A1E5 20 23 B2
INIT NUMBER QF STARS
LDA
#STLAST
STA
NSTARS
"Tbx
'
r
MIBDIF
LDY
hSENTB. X
JSR
LDMESS
SAME TYPE MESSAGE
i
s
t
I
A1E8 Ay 40
*
LDA
I
All A BD OH D2
SI A
A 1 r D *jQ
_
CL I
A 1 EH A9 CO
'
LDA
AH-'O BO OE 04
STA
__
1
t
t
MAIN PROGRAM
L
! AH R A i
i
....
VLi-V;-:l (it i
I aR j A1 '.
!
aj:
t
A 1 F 3
A IF"3 A5 67
A 1 F 5 F,Q .FC.
A1F7 A9 00
A1F9 85 67
MAIN
START
MAIN FLOW CHART
WAIT FOR VBLANK
CLEAR AND LOAD STARS/OBJECTS
MOVE ROUT I NFS
.......
PLAYER INTERFACE SECTION
SERVICE SECTION
till DETECT
SERVICE CONTI NOUS RUNNING ROUTINES
JUMP TO START
GAME ON ONLY
GAME ON ONLY
game on only
LDA
fi££L
LDA
STA
PROGST
mm
#$00
PROGST
~i-.MhUJEM VBLANK NM i._
i RESET VBLANK STATUS REGISTER
«»
UPDATE MEMORY MAP RAM AND PLAYERS RAM
AIT B A 5 7 A
i
i
LDA
CLRSTR
CLEAR STAR ROUTINE
CNSTAR
i THIS FLAGS SAYS OLDPS NOT DEFINED
-
-
i.w
i
•
IF=00
A1FD FO 20
•
BEG
CLRSR2
'•
•
'
.v.
'
'
' \ 5
• '•
L LKC':! L :.3? C
•
'LL
•
L
’
•' CL
:
?
A IFF A2 04
x.
LDX
#QBLAST
) LAST LOCATION OF OBJECT IN RAM
A201
CLRSRl
A201 EB
I NX
A202 DC 5B OC
LDY
OLDVERi
X
A20 5 B9 00 08
LDA
VCONL,
Y
A208 85 68
.
.
.
•
‘
-
•••
•
•
STA
PNTR
’
.
I,...':.
^
!
*•”
' '*•* *• ••/••••*•• •••-
*
•
*
...
’
1
•
'
'
!
A20A B9 64 08
!’
-
•
.
.
LDA
VCQNH* V
A20D 85 69
•.
•*.%•
.
.
.
•
STA u^h;cM
;
...
.
. :‘V.
....
’
' ;
'•
.
•...•»•
• V
•
•
,.y •. A
.
....
A20F BC 8C OC
LDY
OLDHOR,
9
A212 BD BD OC
LDA
OLDBYT#
A215 91 68
STA
(PNTR),
Y
l BYTE
A21
7
E4 7A
CPX
CNSTAR
A219 90 E6
BCC
CLRSRl
:
•
•
'
'
'
.
A21B A9 00
LDA
#$00
A21D 85 7A
STA
CNSTAR
i STARS CLEARED
A21F
CLRSR2
i
i
1
/
i
STOSTR
i
STORE STAR IN RAM MAP ROUTINE
A21F A5 CO
i
LDA
HFL.AG
i IN HYPER JUMP
?
•
A221 30 2D
i
i
BMI
STOSR
1
.
"
i
' YES I NO STORE
A223 A6 79
i
LDX
NSTARS
i LAST BYTE OF STAR RAH TO STORE
A225 86 7A
STX
CNSTAR
i STARS POINTERS DEFINED OK TO CLEAR NOW
A227
ST0SR2
A 1 F3
J
MAIN PROGRAM
MAIN
i
i
MAIN FLOW CHART
l
START
i
WAIT FOR VBLANK
i
CLEAR AND LOAD STARS/QBJECTS
L
_MQV£ ROUT I NFS
;
PLAYER INTERFACE SECTION
GAME ON ONLY
,
SERVICE SECTION
GAME ON ONLY
L
Htt.JBEIKI
_
„
_ „
GAME ON...ONLY
i
SERVICE CONTINOUS RUNNING ROUTINES
i
JUMP TO START
A1F3 A5 67
LDA
PROGST
a i f 3 f£> fc
_
umiumjoum m
i
r
AIF7 A9 00
LDA
#*00
j RESET VBLANK STATUS REGISTER
A1F9 85 67
STA
PROGST
•
••
;
,
•
.
.
.
••
••
.
.....
.•
.-•.*
.
.
-
;
•
*••••
.•
.
-
•
•
•
•.*<•
•
•
•
....
^ ^
{
'
•
-
t
,
•
i
i
i
J
UPDATE MEMORY MAP RAM AND PLAYERS RAM
I
CL.RSTR
*
i
CLEAR STAR ROUTINE
AIFB A 5 7A
LDA
CNSTAR
i THIS FLAGS SAYS OLDPS NOT DEFINED IF=00
A1FD FO 20
BE9
CLRSR2
A IFF A2 04
v
LDX
#OBLAST
i LAST LOCATION OF OBJECT IN RAM
A201
CLRSR1
'
'
•
sV
.
-.f,
. ..
.
•
_
A201 E8
INX
A202 BC SB OC
LDY
OLDVER i X
A20 5 B9 00 08
LDA
VCQNLi
Y
A208 83 68
STA
PNTR
.
.
..
,x>sv
•
•
••
...
A20A B9 64 08
•>
••
•
•
•••*- LDA
VCONHi Y
•
;
^
••
•
•
’
:
•
V
.
A20D 83 69
.
...
.
STA
PNTR+J
•
•••••
•
.
.
'
’
•
•
•
.
...
’’
'
.
.
A20F BC 8C OC
LDY
OLDHOR#
X
A212 BD BD OC
LDA
OLDBYT,
A215 91 68
STA
(PNTR),
i
. BYTE RESTORED
A21
7
E4 7A
CPX
CNSTAR
A219 90 E6
BCC
CLRSR1
•v:
* |VV.
•
....
.
..
......
.\s\.,V sv.
.
.......
'
••
A21B A9 00
-/T
... LDA
#$00
A2ID 83 7A
STA
CNSTAR
i STARS CLEARED
A21F
CLRSR2
i
.
'
' fti.
i
1
.
*!*•'•
’
•
•
4
i
•
.
•
.
...
.
.
.
STQSTR
• v.
.
.
•
••••<
.
....
...
'•
•
j
STORE STAR IN RAM MAP ROUTINE
A21F A3 CO
i
LDA
HFL.AG
i IN HYPER JUMP
?
A221 30 2D
BMI
ST0SR1
i " YES 7 NO STORE.
A22,j^fc. 79
LDX
NSTARS
i LAST BYTE OF STAtj^fcli TO STORE
A22^Bt 7A
STX
CNSTAR
i STARS POWERS DEFINED OK TO CLEAR NOW
A227
~
STQSR2
' "
’ —
~
*
'
--
r i
ft A
( U
,
i
?'•
'
r f
k:.
:;
[
. 'ii
'
i
-i
i n!'
1 •r i
1. 1.
i
.
»"•
'
'
'•
A227 BD F9 OB
i
LDA
VPOS,
>.
A22A 9D 5B OC
STA
01 DOE U, X
A22D A8
TAY
A22E B9 00 08
_
LDA
VCONL.» Y
A23
1
85 68
STA
PNTR
A233 B9 64 08
LDA
VCQNH,
Y
A236 85 69
STA
PNTR+1
A238 BD 2A oc
LDA
HPOS, X
A23D 4A
LSR
A
A23C 4 A
LSR
A
A23D 9D 8C OC
STA
OLDHOR , X
A240 A8
TAY
A24
B
1
68
LDA
(PNTR)-
Y
A243 9D BD oc
STA
OLDBYTiT'
A246 ID EE OC
ORA
STRBYT - X
A249 91 68
STA
(PNTR )
<
Y
A24B CA
DEX
.
..
;
;
v' TTY
..
A24C EO 04
CPX
#0BLAST
A24E DO D7
BNE
ST0SR2
A250
ST0SR1
A250 A5 66
LDA
TIMOUT
A252 To OE
~1Pl
.
.
,TT
..
%
-
ST0SR3
A254 A9 00
,
1
•'
4
-
LDA
#*00
A2S6 8D E3 17
STA
NOSTAR
A259 0D E4 17
STA
NOSTAR+1
A25C 8D BC 17
STA
NQSTAR-39
A25F 8D BB 17
STA
N0STAR-40
BYTE SAVED
DO NEXT STAR
A262
• V .V
•
s> V.:
;•
..
V
S: : V.
'
s
••••••;•
'• r
:f
•
• v:To''
• ••
*V ••
• ••• •••/*••
•
-V *,•
A262 A9 00
A264 AC 5F OC
A267 AE Cl OC
A26A
A26A 99 00 03
A26D C8
_
A26E CA
A26F 10 F9
A271 AC 5E OC
A274 AE CO OC
A277
A277 99 00 07
A27A C8
A27B CA
A27C 10 F 9
CLROB
1
OBJECT
LDY
LDX
STA
1NY
DEX
BPL
CLR0B2
LDY
LDX
STA
I NY
DEX
BPL
CLROB
J
CLEAR OBJECT RAM
Woo"
OLDVER+4
QLPNUIi+4
MGRAPH,
CLROB
1
OBJECT 3
QLDVER+3
0LDNUM+3
PGRAP3#
CLR0B2
OBJECT 2
A27E AC
51) OC
LDY
OLDVER+2
A281 AE BF OC
LDX
OLDNUM+2
*
••
•.
.•
•.
,c
• V
•
*•'* -v«
'•
••
'
A284
A284 99 00 06
A287 C8
A288 CA
A289 10 F9
CIR0B3
STA
I NY
DEX
BPL
PGRAP2, Y
CLR0B3
OBJECT i
S
i Ai<
ti A
1 Dt..FL
VLRL ION 25
1
i Ah' DA 1 f 26
- JUi
-
r 9
A2BB AC 50 oc
LDY
OLDVER+1
A28E AE BE oc
L D X
QLpNUM+1
A29
1
CLROB
4
A29
99 00 05
STA
PGRAPUY
A294 C8
I NY
A295 CA
DEX
A296 10 F9
BPL
CLR0B4
#
OBJECT 0
A298 AC 50 OC
LDY
OLDVER+O
A29B AE BD oc
L.DX
OLDNUM+O
A29E
CLROB
5
A29E 99 00 04
STA
PGRAPO* Y
A2A 1 C8
•
•
•••
...
I NY
A2A2 CA
DEX
A2A3 10 F9
i
BPL
CLR0B5
f
•
;
...
t
s
{
•
-
S
•••*
STQOBJ
i
•'
‘
v.'.
l
•
•
.. SIOBE QBJECX-.fiQUTlNE
. _
.. _
i
i
OBJECT 4* ALWAYS PHOTON, OR DOCKING OBJECT
A2A5 AD 90 OC
LDA
GINDEX+4
A2A8 C9 01
'• L '%%
:
•
6''
;V CNP
#*01
; DEFINE CARRY
A2AA A4 E8
•
-
'
, '>v. i
LDY
GRAPH+4
A2AC AE FD OB
LDX
VP08+4
A2AF BE 5F OC
STX
OLDVER+4
A2B2 AD F2 oc
LDA
NUMBYT+4
A2B5 85 6A
STA
TEMP
A2B7 8D Cl oc
*
0TA
OLDNUM+4
A2BA
STDQB1 L
:
LFF.'.:. .a-::'
A2BA B9 E4 B8
LDA
PHGRAF,
Y
A2BD BO 03
BCS
ST00B8
A2BF 2D OA D2
AND
RANDOM
A2C2
ST00B8
A2C2 9D 00 03
STA
^GRAPH.x
:
r
~~
A2C5 C8
’•
: v
•
••
• INY
.
•
•
•'’
’
•
••
••
!
.
,
’
• '••••••.. s
.
.-••
•
*
.
'
' V
'-
.
.
..
'
•
••
A2C6 E8
I NX
:
'
'
.
y
'4 %
"
A2C7 C6 6A
DEC
TEMP
A2C9 10 EF
BPL
ST00B1
*
OBJECT 3
* ALWAYS PHCITON
A2CB AD 8F OC
LDA
GINDEX+3
A2CE C9 01
CMP
#$01
A2D0 A4 E7
LDY
GRAPH f
3
A2D2 AE FC OB
LDX
VPQS+3
A2D5 BE 5E OC
-
STX
OLDVER+3
A2D8 AD FI OC
%
LDA
NUMBYT+3
A2DB 85 6A
STA
TEMP
A2DD BD CO OC
STA
OLDNUM+3
A2E0
ST00B2
A2E0 B9 E4 B8
LDA
PHGRAF* Y
A2E3 BO 03
BCS
ST00B9
A2E5 2D OA D2
AND
RANDOM
A2E8
STQQB9
;V
*
'
' /
.
:
'
A2E8 9D 00 07
STA
PGRAP3* X
A2EB E8
•
/*/•’.•
;
•'
;
•
’
INX
A2EC C8
INY
A2ED C6 6A
DEC
TEMP
A2EF 10 EF
BPL
STQ0B2
i
OBJECT 2, (VARIABLE GRAPHIC)
C
i *\K
N,' vi
’
Vi:.,- >•:
!
i J
i.
>
i AF'DA
«
!:.
,
/
'U!
"
A2F1 AD BE OC
LDA
Q 1 NDE X +
2
A2F 4 C9 01
CMP
#$01
|
A2F6 A4 E6
LDY
GRAPH t-
2
A2FB AE FB OB
LDX
VPOS+2
a;:f'b qe sd oc
STX
OL.DVLR +2
A2FE AD r-0 OC
LDA
NUMBYT+2
A301 85 6A
STA
TEMP
A303 8D BE OC
STA
OLpNUM+2
tvjyit,
ST00D3
A306 B9 E4 B8
LDA
PHGRAF#
Y
A309 BO 03
BCS
STQ0B7
A30B 2D CA 1)2
AND
RANDOM
A30E
STQ0B7
-i-
A30E 9D 00 06
STA
P0RAP2.
X
A3 1 1 E8
INX
A3 12 C8
I NY
A3 13 C6 6A
DEC
TEMP
A3 15 10 EE
•
BPL
STOOB3
i
OBJECT
1 (VARIA1
A3 17 A4 E5
•
.
LDY
GRAPH+i
A3 19 AE FA OB
LDX
VPOS+1
A3 1C BE 5C OC
STX
OLDVER+l
All F AD EE OC
LDA
NUMBYTfl
A322 85 6A
STA
TEMP
A324 8D BE OC
:
:
•
’
7:;
: STA
OLDNUM+
1
A327
8T00B5
A32 7 B9 B1 B9
LDA
ZYGRAF, Y
A32A 9D 00 05
STA
PGRAP 1# X
A32C E8
INX
A32E C8
.’.
'
'V
,S
;.- •••
• V,-
.
...
....
inV
,0-
..
• .... s
.,-..
r
.
;-s
• ;vo,
c.
• ••
A32F C6 6A
v
•V •'*
•
•
•
•
•
s-.:-
••••..
.....
-
•
• •
s
-..
.s
..-Vi
DEC
TEMP
A331 10 F4
•
-
• •
•
•
•
, •
.-A*. .»
...
s.. S
..
.....
BPL
STQ0B5
1
~
**
*
OBJECT
A333 A4 E4
LDY
GRAPH+O
A335 AE F9 OB
LDX
VPOS+O
A338 8E 5B OC
•
•
.-•>,* 5
.
• .’•
~§Tx
’
Qld'Jer+o
A333 AD EE OC
•
•
s*.s.,.. • .si.
v ,s
s
•
•.
........
•.
I.- <-v> LDA
NUMBYT+O
A33E 85 6A
STA
TEMP
A340 8D BD OC
STA
OLDNUM+O
A34 3
ST00B6
A343 B9 B 1 B9
LDA
ZYGRAF,
Y
A346 9D 00 04
•!
...
.
.....
STA
PGRAPO, X
A34 9 EB
...
;
....
+.
.. INX
'
*•'
•
*
•
•
•
•••..}
..
•
*••••
•
•
>
•
A34A CB
.
’*
'.'j
.’
.
-
y
'
.•
I NY
A34B C6 6A
DEC
TEMP
A34D 10 F4
j
BPL
ST00B6
i
..>•••
,
•.
•
•
...
-
•
....
'
'
,:V.
UPDATE HORIZ
A34F AD 2A OC
... .S'
‘
.
..
.
. ...
..
LDA
HPOS+O
A352 8D 00 DO
STA
HPOSPO+O
A355 AD 2B OC
LDA
HPOS+1
A358 8D 01 DO
STA
HPOSPO+1
A35B AD 2C OC
'
.
!:*:•
•
t
• ,<>V
.• LDA
HPOS+2
A35E 8D 02 DO
.
••
••
STA
HPDSP0+2
A361 AD 2D OC
'
!$; , s
’
vi?*.
LDA
HPOS+3
A364 8D 03 DO
STA
HP0SP0+3
A367 AD 2E OC
LDA
HPOS+4
A36A 80 07 DO
STA
HP0SP0+7
, define carry
1
1
1
"
I
11 v ' I ' -s 'WT
f i 1 y
»
"
- t-
••
..••••.
- s'
.•
.s'.!-., "v: :.
s
.
;v.;
,.W y,*.,;,s
•••
.
•
r~
-"hv
A36D 18
CLC
S i NO i’i* • t: 26' NUl
/ V
PA ) l’Ll \ 6
i
VERSION 3
1.
3>
tiP' 1
’
*
1“
• iU ..-
f
A36E 69 02
ADC
#$02
A370 8f) 06 DO
STA
HP0SP0+6
A 37 3 69 02
ADC
#$02
A37 5 8D OS DO
STA
HPQSPO+5
A 378 69 02
ADC
#$02
A37A 8D 04 DO
STA
HPOSPO+4
END UPDATE MEMORY MAP RAM AND PLAYERS RAM
-
• *.
-*•
,*",
**r
r
A37D 24 DO
A37F 30 3A
STARS/OBJECTS MQVg ROUTINES
BIT
DISFLG
BMI
MAIN1
i NO ROTATE IN GALACTIC CHART
YRQTAT
ROTATE ALL LEFT AND RIGHT
A381 A5 C8
LDA
A383 FO 19
BEG
YR0TA1
i NO
A385 BS 6D
STA
TEMP3
A387 A4 79
LDY
NSTARS
i LAST BYTE OF STARS
A389
YR0TA2
/v.;
.333
•..7’7l.-..y7*7v-i
•
7.7T*\ ;
.
'7
'
'
y**'
n
*•'
A389 84 6E
‘
:
v->
7 STY
TEMP4
i TEMP STORE
A38B 18
CLC
7 : . 67
. 377
' 73
A38C 98
TYA
A3SD AA
TAX
A38E 69 31
ADC
#RAMNUM
i YPOS
A390 A8
s > •., i-.. -.S %
•
TAY
r-.s
-J
11
>
-/V V
1
•'
•
•
•;• •••/•
A391 20 9B B6
•
*•*.
....
R.'X', 7,.y 7.77 v
3
JSR
RQHELP
•
->•
• •
•
;•>,
.'...7
A.
'
.
._
...
...
y.V
•
• v*
.
7;7':,7.
‘ 72
7
A394 98
TYA
V- V . ..
.
*.
*.-•
. s V
•
...
...
.....
.
.
Vs*
•
••
•
.
.
.
A395 AA
TAX
A396 A4 6E
LDY
TEMP4
A398 20 9B 136
JSR
ROHELP
A39B 88
DEY
s'-
..
.... ^
.y'-
'
'
V
'
'
.
:
?
A39C 10 EB
BPL
YR0TA2
.
...
'
7:.
;
t
.
..
S'-)- - S'.*’. •
iS •
•••.
•
*
A39E
YRQTAl
7 73'
'.3 3'"' 333
.
"
I
*
i
i
ZROTAT
•••••«.
••
:
.;
.*. v*. v .
. 3
.
.
i
ROTATE ALL UP AND DOWN
.
: 3
•.
.3
A39E A5 C9
LDA
VERJQY
i VERT JOYSTICK T
A3A0 FO 19
BEG
ZR0TA1
i NO
A3A2 85 6D
STA
TEMP 3
A3A 4 A4 79
LDY
NSTARS
A3A6
ZR0TA2
A3A6 84 6E
STY
TEMP4
A3A8 18
CLC
A3A9 98
TYA
A3AA AA
TAX
A3AB 69 62
ADC
#RAMNUM*2
i ZPOS
A3AD A8
#
TAY
A3AE 20 9B B6
JSR
RQHELP
A3B1 98
TYA
A3B2 AA
TAX
A3B3 A4 6E
LDY
TEMP4
A3B5 20 9B B6
JSR
ROHELP
A3B8 88
DEY
..t~, ,
*•••**•*»•««
'•Hn
—
i
r'“*i i ! LVi
i
t"
1 1 .\'.
f-' .-1
1
j
h
l H
] tit
i
A3N9 10 tiU
A3SD
BPL
ZRGTA2
ZR0TA1
>
A3BR
MAINl
»
i
XMQVER
UPDATE ALL XROS PUE.TQ FORWARD SHIP MOTION
SUBTRACT SPEED FROM XPOS
A3BB A6 79
LDX
NSTARS
i X-INDEX TO STARS/POBJECT
A3BD
XMUUE1
A3BD EO 05
CPX
#OBJNUM
i PHOTONS ?
A3BF BO 05
BCS
XMQVE2
i- NO.
A3C 1 BD 8C OC
LDA
GINDEX, X
A3C4 FO 19
BEQ
XM0VE3
A3C6
XM0VE2
A3C6 38
SEC
A3C7 BD D3 OA
LDA
XPOSLi X
A3CA E5 70
r
SBC
SPEED
A3CC 9D 03 OA
v.
;
y V
’
STA
£POSL,
X
A3CF BD 40 OA
LDA
XPOSHi X
A3D2 E5 Cl
SBC
HISPED
A3D4 9D 40 OA
STA
XPQSH, X
A3D7 BD AD 09
LDA
XSIGN. X
A3DA E9 00
•v- •
•
•
.
•
,.,•••
’
. >
•
SBC
#$00
I- CARRY QNCV
A3DC 9D AD 09
"...
.
.»
.
.
..
...
•
’-
.s
'
' STA
XSIGN, X
A3DF
XM0VE3
A3DF CA
DEX
A3E0 10 DB
BPL
XM0VE1
•
# NEXT STAR
V,
;
*
.
,'k
>.V
"**•'*;
•••'•#
•
.
i
"
_•••••*; a
...
•
•
•• ••
•• c..! •
•.
.
•
.
vvvv!.v
^ssv- :i- ;
•.
'is-
ALL DONE
;
•••
••
'
•
•
.
.
..
•
•••
•
.
•
••
•
K
%'
..
•
•••
.•n*,v
•.
-..-.v
.
•
•
...
•••
•
•••••••*--
•av-x.
,.s
....... ...
...
.
'
•
:
•
;>
•
.r%
: v
:•
•
•
• •••>.
...
••
•
•
•
•••
•
•'
.
,
•!
.’’*•!
,v.>.
'.
-'-'.-sV
..
v. *!
.v’..
.
...
'
’I
%
•%*>*••••••
.
. 0.
.
.
-r
.
;
..
•
i
MOTION
9
OTHER MOTION SUCH AS DUE TO ZYLON SHIP POWER
f
•
•••
*
..s»
..
'Xy.v
#
•-
V
• V-V V
»s
*'
’*••••'
l
“’OR PHOTONS^
i#
V
XINCRE. YINCRE, ZINCRE ARE ALL 6J6N-MA6NITUE TYPES
A3E2 A6 79
''
*.
"!.*
'
'
•>’ • •••
«. A. LDX
NSTARS
•
•
'•
: a
:
:
A3E4
M0TIN1
A3E4 EO 10
CPX
#STLAST
» REG STARS ?
A3E6 DO 02
BNE
M0TIN9
i NO
A3E8 A2 04
•• •:•
•
.,•••
..
...
•
r'
"
LDX
OOBLAST
i LAST OBJ
•
A3EA
M0TIN9
7
‘XX . X
• v
-
>.
* ..•
....
,.s .
;
•
'•
•.
.
., .
...
.
r.
"
’
'
'
•
:
' >•
;
vi
•’>
.
"'*:
: V
A3EA 8A
TXA
A3E8
M0TIN2
A3EB A8
TAV
A3EC A9 00
LDA
#$00
A3EE 85 6B
STA
TEMPI
...
"
’
*
’•
.
•
•
'•
s.v
•
-
.
.
1
A3F0 B9 66 OB
LDA
XINCRE/
Y
....
V
"**!’*'
A3F3 10 09
BPL
MQTIN3
'
'•
v
•
'
. ...
.
,.’
v
‘
’
A3F'5 49 7F
EOR
#$7F
A3F7 18
CLC
A3F8 69 01
ADC
#$01
A3FA BO 02
..
.•v.Sn
.
• ••
•••
BCS
M0TIN3
A3FC C6 6B
DEC
TEMPI
'
<
• A
.
.
.....
....
. .
...
A3FE
M0TIN3
*•
*
•..•
A3FE 18
CLC
A3FF 79 D3 OA
ADC
XPOSL, V
A402 99 D3 OA
STA
XPQSL., Y
A405 B9 46 OA
LDA
XPOSHi Y
.
.
FA 1 Dl : i\ 6
.
VLkOL'N
9
>
1 AHDa
1
1: 2 O' JU!
/
’
A408 65 6B
ADC
TEMP 1
A40A 99 40 OA
STA
XPQSH< Y
A40D
Li 9 AD 09
LDA
XSIGN, V
A 4 1 0 65 6B
ADC
TEMPI
A4 1 2 99 AD 09
BTA
XSIGN, Y
A415 98
I
TYA
A 4 1
6
is
CLC
A 4 1 7 69 31
ADC
#RAMNUM
A419 C9 90
CMP
#RMLAST#3
A41B 90 CE
BCC
M0TIN2
A41D CA
DEX
A41E 10 C4
BPL
MOT INI
i ALL DONE ?
i MD
~r
• “•"»*
»yr'.~ *•«• .'|i«"r»-»—•
"I 1 "*-—*! y
-y
•
i NEXT STAR OR OBJECT
A420 AO 04
A422
A422 96
A426 AA
A428
A42D 90 10
BOUND 1
LDY
tya
TAX
BQUND§
*«
tm
#0BLAST
* ONLY OBJECTS
A9 02
LDA
#$02
85 6A
BD AD 09
STA
BOUNDS
LDA
' TEMP
•
••
,.V9 V.
•
.
' 9
'
'
'
'
••
••
-
.;•••
;.:v.
•
:
9,2: Y 2; ''’Y'O'
'
.'•/•
•
XSI6N> X
’v'^vvs vX
'2' :
‘
L‘‘! '
•
•• ••
•
'•••. ££.•.!• '• /
’
’£•
C9 02
CMP
#$02
A42F
A 430
A432
A435
A437
A43A
A43C
OA
A9 00
*
9D AD 09
BO 05
FE AD 09
49 FF
BCC
AST
LDA
STA
BCS
INC
EQR
BOUNDS
A43C
A43F
9D 40 OA
qTA
B0UND4
A43F 8A
TXA
A440 18
CLC
A44
1
69 31
ADC
A443 AA
TAX
A444 C6 6A
/..O'
. /
DEC
A446 10 EO
BPL
A448
A449
88
10 D7
DEY
BPL
B0UND4
OUT OF BOUNDS
A
#$00
XSIQNi X
BOUNDS
XSIGN, X
#$FF
XPOSH» X
#RAMNUM
TEMP
BQUND3
BOUND
1
i NEXT STAR
CALCVH
CALCULATE V, H POS FOR ALL STARS/OBJ
A44B A5 DO
LDA
DISFLG
A44D C9 02
CMP
#$02
A44F BO 5C
BCS
i
CALC 14
A451 A6 79
LDX
NSTARS
A453
CALCVI
A453 A9 FF
LDA
#$FF
A455 BC AD 09
LDY
XSIQN# X
I NOT FRONT OR BACK
i ” x = inde¥ ~0F STARS
i STAN LOOP
•rr»l.«r«“ •n^i
m'i
A
I
fj
FAlDI:
VFF 3 \ i.*N 25
i
S
i ftBDA
!
i
J'JL
A458 C4 DO
CPY
DISFLG
A45A F0 4B
•
_
-•••-
BEG
CALC05
4
>
i
UPDATE OPUS
-
A45C BD OF OA
4
L DA
ZSIGN/ X
4 2 ' S COMPLE ZPOS?
A45F DO 12
BNE
CAL.CVQ
i NO
i
2'S COMPLEMENT
A461 38
SEC
A462 A9 00
LDA
#$00
A464 FD 35 OB
SBC
ZPOSL. X
A467 05 6A
'
STA
TEMP
•
A469 A9 00
LDA
#$00
A46B FD A2 OA
SBC
ZPOSH» X
A46E 85 6B
STA
TEMPI
A470 4C 7D A4
JMP
CALCV9
A473
CALC08
A473 BlT~35 OB
LDA
ZPOSL. X
:.T
:•
'
..
.
A476 85 6A
•
•
-t
’
...
STA
TEMP
4 STORE IN TOP REO
A478 BD A2 OA
LDA
IPOSH, X
A47B 85 6B
STA
TEMPI
A47D
CALCV9
A47D 20 21 AA
JSR
DIVIDE
i DIVIDE ZPOS BY XPQS
A480 20 IE B7~
JSR
BTVPOS
:
'
i STQE VPO
1
If
T
'
...... s-
•
.
-.x-.s
.'...-v
.•
:
i
i
•••••••
’
.i
.
.
.
•
+
•••••••.
UPDATE HORIZ P08
A483 BD DE 09
i
i
LDA
YSIGN 4 X
i 2'S COMPLE YPOS ?
A486 DO 12
BNE
tALtV3
1 NO.
'-'
;T
i
V
1
••
2'S COMPLEMENT
-o-
-*
'
-
••••
••
••
-
••
-••••
•
•••
••
-
.
...
...
.
••••••
:
.
.•
.
•
•
.
.•
-
:-•••.
• ...'•.,. 4
.
•'
:
..
•.
A488 38
.
:•••••*>* v >•
'*
v‘ '•••
•
•
,
'•*^V
.
r
’ s
.
-»
•
•
•
SEC
••
;
;
i
-.
...
•
A489 A9 00
LDA
#$00
A48B FD 04 OB
SBC
YPQSL/
X
A48E 85 6A
STA
TEMP
i STORE IN TOP < NUMERATOR) REG
A490 A9 OCT
T6a ~
#$bb
T ^
•/•j*
•••. V-
•
• ••
.
.
..
.......
'
!.
.
1
.
•<...
A492 FD 71 OA
SBC
YPOSHi
••
' ... sv..-
. v
...
..
..'V;
•
••••.*•-
. ••*
;
.•••••.;
.*
...
v*
•
•
•••••
....
.
/.
\
• v
...
.
•
".
i
.••-.-••••
••
A495 85 6B
:
V.’-
"
v
STA
TEMPI
......
....
.
A497 4C A4 “A4~
JMP
CALCV4
A49A
CALCV3
A49A BD 04 OB
LDA
YPOSL 4 X
i SOTRE IN TOP REG
A49D 85 6A
STA
TEMP
•
'
.
....
‘
' ••••••.
....
A49F BD 71 OA
LDA
YPOSH 4 X
A4A2 85 6B
STA
TEMPI
A4A4
CALCV4
A4A4 20 21 AA
JSR
DIVIDE
4 DIVIDE YPOS BY XROS
A4A7
CALCV5
A4A7 20 FB ~W
JSR
STHPOS
i
STORE HPOS
A4AA CA
i
DEX
•.
•
-
...
A4AB 10 ~A6~
BPL
CALCV1
i NEXT STAR
4
ALL DONE
A4AD
CALC 14
•
4
f
f
••
...
• ...
'E
..
•
.’.
••
*
..’V'
....
.
..
'*"*
'
-
•
••••
•
vV.
"
...
.
.
A4AD 20 62 B1
JSR
CSERVE
i SERVICE GALACTIC CHART
S5ERVE
QBJCL2
A4ED A9 00
A4EF 95 E4
A4F1 9D EE OC
SET GRAPH PNTR TO NULL GRAPH I
C
GRAPH, X
STORE
1 BYTE ONLY
NUMBYTi
X
OBJECT ON
NO
i SECTOR SCAN
i INTENSITY AND GRAPHIC SIZE
; STARBASE ?
i
' A
i b l.;nS;
3 ON
.’.
>.
1
[ ,
i AH 1 'A T Iv 26— -JUi
.
i
SECTOR SCAN SERVE
A4 BO 24 DO
BIT
DISFLG
A4B2 50 31
DOC
SSERV1
A 4 [14 A2 31
LDX
# I NSTB2— 1 NS TA B
A4U6 20 61- A7
JSR
Lp INST
A4B9 2C 96 09
BIT
DAMAGE+4
A4BC 70 27
i
BVS
SSERV1
A4BE A6 79
LDX
NS VARS
A 4 C 0
SSFRV2
A4C0 BI) 4Q OA
.
_
LM
,
XPQSH, X
A4C3 BC AD 09
LDY
XSIGN, X
A4C6 DO 02
BNE
SSERV3
A4C8 49 FF
EOR
JttEE
A4CA
A4CA AS
A4CB B9 E9 OD
A4CE 20 IE B7
A4DL BDJ7L_
A4D4 BC DE 09
A4D7 DO 02
A4D9 49 FF
A4DB
A4DB AS
SSERV3
SSERV4
TAY
LDA
JSR
LDY
BNE
EOR
"r—
,
•
I
."*
*
•
TAY
PTA0) Y
STVPOS
YSIGN, X
SSERV4
#$FF
'
'''
*
:
:*:
**r- ’
:
'
!•
. .>
.
•
•••'•
;
•
•
.
i LOAD SECTOR SCAN SHIP
i SECTOR SCAN DAMAGE
•
•.
.
’."'IS!'.**!**!'-'"
.;- rv .
Xs .
OBJCOL
A4E5 A2
A4E7
A4E7 CA
A4E8 10
A4EA 4C
A4ED
#OBLASTtl
» OBJCT LOOP
DEX
BPL
JMP
03
79 A5
0BJCL1
OB JC 12
0BJCL1
LDA
#$00
A4F4 24
A4F6 10
A4FS EO
A4FA 90
A4FC
A4FC AD
A4FF AO
A501 30
A503
BIT
BPL
DISFLG
0BJCL3
#$03
0BJCL2
i GALACTIC CHART ?
i NO
f OBJ 0 , 1 72 ?
'
BCC
NO DISPLAY
YES
0BJCL4
OA D2
LDA
LDY
BMI
i RANDOM COLOR
i SMALL SIZE
i JMP
RANDOM
#$F2
0BJCL6
0BJCL3
A503 D5 E9
EO
F3
40 OA
7B
IE
CMP
BEQ
STFLAG,
0BJCL2
OBJCL4
XPOSH, X
BASFLG
0BJCL6
A505 FO
A507 70
A509 BC
A50C 24
A50E 50
A4DC B9 E9 OD
A4DF 20 FB B6
A4E2 CA
A4E3 10 OB
A4E5
SSERV1
LDA
JSR
DEX
BPL
PTAB, Y
STHPOS
8TO2
:
'^fl'
i hi
ir
'i
'.'t:
j
VLU
• ti.-i
I
I r
1J
s‘ \
' i
•
t
f
t
A51Q
fc“0 02
CPX
4 $02
f SBASE OBJECTS ?
A 5 1
2
BO 16
DCS
OBvJCLO
t NO
A '"j 1 4 AL) 2C OC
LDA
HPOS+2
t GANG OBJ 0/1/2 TOGETHER
A51 / 1G
CLC
9 OBJ 2 IS REFERENCE
A51S 7D DB BE
ADC
BNORTH
. X
9 HORIZ OFFSET
* +B, ~B
A51
8
9D 2A OC
STA
HPOS/ X
A51E AD FB OB
LDA
VPOS+2
i GANG VPOS
A521 18
CLC
A522 69 04
ADC
#4
A524 9D F9 OB
STA
VP OS/ X
A 52 7 AC 42 OA
LDY
XPOSH 4
2
i ALL USE 0BJ2 POSIT.
A52A
OBJCLB
A52A A5 76
LDA
BINTIM
.
i MODULATE STARBASE COLOR
A 52C 29 OF
AND
#*0F
A52E
'
A52E 85 6B
0BJCL6
STA
TEMPI
•
i COLOR MODULATE
A530 98
TYA
i XPOSH
A53
1
BC F9 OB
LDY
VPQ5, X
'»
i IN BOUNDS CHECK
A53 4 CO cc
CPY
#*CC
V IN BOUNDS ?
A536 BO AF
•
••
...
'
. BCS
QBJCL2
i NO
.
A538 A4 DO
LDY
DISFLG
«
< FRONT OR BACK ?
A53A FO 02
BEG
0BJCL7
i FRONT
A53C 49 FF
EOR
#*FF
i ONES COMPLEMENT XPOSH
A53E
“objSl? ~
‘
•
•
,
•••.
•
.
i.
;
••••
>*•
•
.
.•.!.!
. Y V C
*;
*:•
‘
..
*!
•*.>;•.
•••>».
.'•
.! !•..!! ..• -/*•', '
•!
•
*
A53E C9 20
;
;
;•
;;
:
S
|
••
••!•••
.
•
.
•
’
.
CMP
#*20
TOO FAR AWAY ?
A540 BO A5
BCS
QBJCL2
'
1 YES
A542 C9 10
CMP
#*10
«
l SMALLEST SIZE ?
A544 90 02
BCC
0BJCL5
J NO
A546 A9 OF
LDA
#*0F
i SMALL SIZE
A548
«?’
:
V'.
TfBJCL5~
•
.h^
.
.
.
u". •*
>.•
" •..«.•
.
•
•
.•
|
;..v
- ;
•
-
;•
•
y..;.
........
.
.
. ..
CC*!.-
-C.
.":
i" LD COLOR. GRAPHIC PNTRS
A548 85 6A
... •/
V
r.:
•
•
..>/• • V.
....
'
' v
X* .
.
v
•».;
•
••
STA
TEMP
.1:. TEMP SAVE XPOSH
A54A ID 8C OC
ORA
0INDEX # X
v TYPE OF GRAPHIC
A54D 4A
,
LSR
A
i ONLY 8 VALUES PER TYPE
A54E A8
TAY
A54F B9 2F BE
LDA
GPOINT#
Y
; OFFSET FROM PHGRAF,
A552 95 E4
•>•���••:
•:•••••
:>
...
BtA
“gR^PHrS ^T HOLDS ' INDEX
'
!
A554 B9 7F BE
•
•••
•
•
•
•
.
;
. /•*...
’
*
'
*.
*
<
•x.if'iv’. MS’*-. LDA
NBYTABi
•
.
'
; ; ,
•••
;
;<
-•
»
•• v
^
-2 / ..
.
..
'fcl
*:
....
.
.
.
•.
"
.
.
.%•
4-...
;
A557 9D EE OC
STA
NUMBYTi X
i NUMBER OF BYTES TO
£
A55A 98
TYA
A55B 4A
LSR
A
A55C 4A
LSR
A
A55D 4A
LSR
A
A55E A8
.
.
.
.
.
......
TAY
...
...
.
.|
» GINDEX ONLY
A55F B9 D1 BF
• s.-
•
•
LDA
COLTAB/
i CHROMA OF OBJ
A562 CO 08
CPY
#$08
i BASE STAR ?
A564 DO 03
BNE
0BJC11
i NO
A566 4D OA D2
EOR
RANDOM
i RANDOM COLOR
A569
oSucii
A569 A4 6A
.
i
v
'
' ./'
LDY
TEMP
i DISTANCE FOR INTENSITY
A56B 59 DB BF
'
; EOR
COLINT. Y
•
» INTENSITY
A56E 45 6B
EOR
TEMPI
i COLOR MODULATE
, IF ANY
A 5 70 BC DF BQ
LDY
CLINDX/
X
i WHERE TO STORE
A573 99 EE 00
STA
COLRAM/
i COLOR UPDATED
A576 4C E7 A4
of*
QBJCL2
t NEXT OBJ
A579
••
•
;
“
J;
0BJC12
i
STRBRT
a
i
i
STAR BIRGHTNESS INTENSITY NEW STAR CALC
LDY
#BRTBLU
5
t
:> »AR RAiDi t- .• >
or;
1 ?S1. ON c'O
1
'•
> FARO 1 1
f tV.
f‘ t-'e
Ol
.
'
'
’
A57B A6 81
LDX
SPABAK
A57D A5 8B
LDA
REDFLO
,
A57F FO DC
BEG
SVRBR2
A561 C6 8B
DEC
REDFLG
t TIME OUT RED ALERT
A 58 3 AO 4F
LDV
#BRTRED
A585 29 20
AND
#$20
A587 FO 04
BEG
STRBR2
A 589 A2 42
LDX
#DIMRED
A58B AO 60
LDY
#DRKRED
A58D
STRBR2
A580 84 F4
STY
CGLRAM+6
i PF2
A58F 86
.
.
F6
STX
COLRAM+8
i BAK
A591 A6 79
LDX
NSTARS
i X*INDWX
,
I NIT TO LAST STAR
!»
A593
btrbri.
A593 luT"40““oa"
LDA
XPOSHf X
1
i INTENSITY DETERMINED BY XPOS
A596 A4 DO
LDY
DISFLG
i FRONT OR BACK
?
A598 CO 01
cpy
#$01
.
L ALL BUIJteC&jqfiM WILL BBANChl
A59A
•*«r*
DO 09
.
O..
' BNE
STRBRS
i FRONT
A59C C? FO
CMP
#*F0
i STAR AT MINUS POUNDS ?
A59E BO 03
V
•
'
BCS
STRBR6
A 5AO 20 64 Hf
•
JSR
NEWSTR
A5A3
STRBR6
A5A3 49 FF
EOR
#$FF
i COMPLEMENT XPOS
A5A5
STRBRS
-..r
;
^7 ::
"
’.r
:
v
'
A5A5 C9 10
CMP
#$10
# USE DEFAULT ?
A5A7 90 02
BCC
STRBR4
j NO
...
:
:;v
A5A9 A9 OF
LDA
#$0F
i DEFAULT
A5AB
STRBR4
A5AB OA
ASL
A
A5AC 29 TcT
AND
#*1C
.
A5AE 05 72
%>
ORA
TIMERX
*
(MULTIPLEX
WITH FRAME OUNT
A5B0 A8
TAY
.
...
0':>
1 FOR 8 APPARENT LEVELS OF BRIGHT
A5B
1
B9 ~90~ BA
LDA
BRTABL,
Y
i WHICH PLAYFIELD
A5B4 85 6A
STA
TEMP
A5B6 BD 2A OC
LDA
HPOSi X
A5B9 29 03
AND
!i
#*03
"
...
.7.:
1
'!•;;•
r 'r, ’vn,w
1
- r
!
.!•'
7'.' 7
1 r
1
- "
111
,l":,riq '
, "‘1 ‘
1
*
•; ;
•
•
>
A5BD A8
TAY
A5BC B9 BO BA
LDA
MASK* Y
A5BF 25 6A
•\ AND
TEMP
A5C1 90 EE OC
STA
STRBYT, X
1 DATA TO STORE IN STOSTR
A50 4 CA
DEX
A5C5 EO ~05
"
*
CPX
#OBJNUM
f ALL DONE WITH STARS ?
A5C7 BO CA
:
. v
••
•
•
••••
•
BCS
STRBRl
4 NEXT STAR
j
ALL DONE
i
•
END STAR/OBJECTS MOVE ROUTINES
...
»*,- - ----
t-J-
.
• *
t
«
i
.
.
'
'j
'
.
”
'
‘v
»
i
GAME ON ROUTINES
i
i
r
i r-
PLAYER INTERFACE SECTION AND SERVICE SECTION, HIT DETECT
A5C9 ~2A 64
BIT
ATRACT
i GAME OVER LOCKOUT PLAYER
A5C8 50 03
BVC
MAIN4
*
| YES
A5CD 4C 9B A6
JMP
MAIN3
A 5DO
MA I N4
A5D0 20 FE AF
i
JSR
KEYSRV
« SERVICE KEYBOARD
;
JQYSTK
U'l Al > RAU7.K3,
VI
!
>*0:
"
/
i
*• s • i J m
i k
i. Ci "
'i
JOYST l CK EVAl OAT I ON ROUT I NE
ASD3 AD 00 D3
LDA
PORTA
ASD6 A8
TAV
; 8 IT IRE TEMP
AS 1)7 29 03
AND
#$03
, VERT ONLY
ASDR AA
TAX
;
••
•
•
A5DA
13 D F5 BA
LDA
JDYTABr
X
i CODE FOR VERT
asdd 85 C9
STA
VERJOY
A5DF 98
TYA
j PORT
fi> AGAN
ASEO 4A
LSR
A
A5E1 4A
LSR
A
A5E2 29 03
AND
#$03
ASE4 AA
t- 1
TAX
; HORIZ ONLY
A5E5 BD F5 BA
LDA
JOYTABi
i CODE FOR HORIZ
A5E8 85 C8
STA
HORJOY
A5EA 20 3D AF
•
JSR
HITZYL
i HIT ZYLON
A5ED 20 29 AE
JSR
PHOTON
j SERVICE TRISgfBE
i
ASERVE
J
ATTACK CPMPUTER SERVICE
A5F0 2C 95 09
!!T
DAPlAQgt3
A5F3 70 40
BUS
ASERV2
ASF'S A5 7£
LDA
ATENER
i ATTACK ON ?
A5F7 FO 3C
BEG
ASERV2
i NO
A5F9 A5 DO
LDA
DISFLG
A5FB DO 03
BNE
A8ERV1
A5FD 20 BF A7
JSR
UP INST
A600
ASERV1
i
i
AUTO TARGET SELECTOR
A600 AE 5C 09
'*
LDX
DCSTOR
~
"
•
,r '
••
.
r
>•:.
...
.
•
'
'
-
•
•
.•
••
•-.
...
.
....
;. /
.
'
•
•
••
•
•
-•
...
.
.-.
,
'
;•
..
..
:
••
h
•.
..
..
.
.
:
•
•
.••!.
.......
..
.
s..
.
.... >.%y V
•
....
........ .
....
..
.
...
..
-
'
•
-V
^
r:**
•;
/ ^
:
T-
’
*;
A603 A5 BF
!*
'
K 7
‘
!
LDA
ATTARG
••
_
:
"•*
;
-•
•
s
-V
*
''
A60 5 30 05
.
Bill
ASERV4
A607 AA
TAX
A608 09 80
ORA
#$80
A60A 85 BF
••2 4*.
•*
"
Sf*T~
ATTARG
•
- f.f
'
'
v-.-!
v
:
••
A60C
• •
•
••
ASERV4
•
.• p
.
-i»
.
.•
...
.
;
•
.•
...
.
•
•
-•
• ••
•
••
‘.'s
•
•
:•
.
'
..
'
,
:-A;.
\
-;•*
:7 :
••••
'
••• ••>.
•.
•
•
••
.
.•
•
A60C B5 E9
LDA
STFLAGi X
A60E DO OB
BNE
ASERV3
A610 8A
TXA
A61
1
49 01
EOR
#$01
1
n.
l
A613 AA
A614 B5 E9
A616
TAX
LDA
STFLAG/
X
DO 03
BNE
ASERV3
AE 5C 09
LDX
DCSTOR
A6 1
8
A61B
A61B 8E 5C 09
ASERV3
STX
DCSTOR
A61E A5 7C
A620 FO
1
3
A622 AS DO
LDA
BEG
LDA
COMPUTER AUTO TRACKING
TRKFLG
ASERV2
DISFLG
A624 C9 02
CMP
#$02
i FRONT OR BAK ?
A4)26 BO OD
BOS
ASERV2
i NO
A628 49 01
EOR
#$01
i WHICH DISFLG
A62A DD AD 09
CMP
XSIGN, X
i OBJ IN SIGHT ?
A62D FO 06
BEG
ASERV2
• YES
A62F AA
TAX
A630 BD CF BE
LDA
TRKTAB. X
i WHICH KEY FOR SWITHING DISPLAY
A633 85 CA
'
•
•
;
y.:-
’
“STA
THEKEY
T swItch” display"
6 ; AR RAICr
{ f 'i f\ i )
A635
A8ERV2
A635 20 F6 AC
A688 20 79 A
A
JSR
JSR
A63B
A63D
A63F
A64
1
A643
A646
A647
A649
A64B
A64E
A64F
A651
A653
A656
A657
A659
A 5 713
DO 5C
AO EB
fo oe
AC 42 OA
CB
CO 02
BO 50
AC 73 OA
C8
__
CO 02
BO 48
AC A4 OA
08
CO 02
BO 40
BNE
LDA
BEG
LDY
INY
CPY
BCS
LDY
INY
CPY
BCS
fcDY
INY
CPY
BCS
A65B
A65E
A660
A663
A665
A667
A669
A66B
A66E
A670
A672
A675
A677
A679
A673
A67E
A681
A683
A685
A6Q7
A687
A6B9
A68B
A68D
A68F
20 El AE
AO 02
20 6B AC
A2 7F
AO 81
DO IE
A2 OA
v
20 45 BO
AO 23
A2 08
20 OA B
1
A2 5F
~
AO 80
A9 08
20 F
I
AD
20 OD AE
A2 40
86 E3
A2 FF
86 8
A
A9 00
85 EB
A9 02
85 BE
JSR
LDY
JSR
LDX
LDA
BNE
LDX
JSR
LDY
LDX
JSR
LDX"
LDY
LDA
JSR'
JSR
LDX
STX
LDX
HITSH2
A691 A2 01
A693 20 6F B8
A696 A2 J)A
A698 20 AS AE
A69B
LDX
JSR
JLDX
JSR
HITSH1
DAMCTL
#$02
_
EXPLOS
#$7F
SPABAK
HITSH2
#$QA
KEYS15
#SENDST-SENTAB
#$08
CRATE
#DISPL3~DISPLY
#$80
#$08
__ g
LDISP
CLRMAP
#$40
BIGEXP
'
#$FF
i DEAD ?
i NQ
* FRONT
HITME
#$00
STFLAG+2
#$02
PHEXWT
AfV R ;4 J B
*•'
i
v I.
It
’
:
{.
!
.il 4
S
! Ar? i.C-i i
.'o
. Mn
NMI INTERRUPT SERVICE SECTION
A6D1
VBN 11
1
At>D 1 A9 FF
LDA
#$FF
A6D3 85 67
STA
PROGST
A6D5 A9 EO
ypA
#ALPHA/£56
A6D7 8D 09 D4
STA
CHBASE
A6DA A6 F 6
LDX
COL.RAM+8
A6 DC AD OA 1)2
LDA
RANDOM
A6DF 24 8A
BIT
HITME
A6E1 50 07
BVC
VBLNK4
A6E3 30 04
BMI
VBLNK1
A6E5 29 72
AND
#$72
A6E7
A6E9
09 40
VBLNK1
ORA
#$40
A6E9 AA
TAX
A6EA
VBLNK4
'
/
.•
..
•v.-.’-.
.
.‘K
..
.-
s
«
A6EA A5 DO
LDA
DISFLG
A6EC C9 03
CMP
#$03
A6EE 90 02
BCC
VBLNK2
A6F0 A2 AO
LDX
#DBLUE
A6F2
VBLNKl
yj
•
*•
••.
• CT-C. C
....
. ,[!.y
A6F2 06 F6
i
STX
COLRAM+8
A6F 4
A6F6
A2 08
VBLNK3
LDX
#$08
A6F6 B5 EE
LDA
COLRAM+Oi X
i SET PROGST VBL.ANK NMZ FLAG
USE STANDARD ALPHA CHARACTERS
i DAK
A6F8 9D 12 DO
A6FB CA
s
A6FC 10 F8
STA
DEX
BPL
C0LPM0 f X
VBLNK3
\ BAK
A6FE BD IE DO
A701 20 AB B2
A704 E6 77
A706 DO OD
A70B A5 66
A70A 30 09
A70C E6 66
A70E 10 05
A/ 10 AO 00
A7 1 2 4C DC A1
A7 15
A715 4C 4B A7
A7 IB
STA
TW.»
'IN
VSR
Tnc*
BNE
LDA
BMI
INC
BPL
LDY
JMP
VBL.NK5
T—
—
i
i
i
DISNMI
HITCLR
,«r. -n ,• 1'^'.'
'wi
AUDIO
- 1
*
...
"BINNMl
VBLNK5
T IMOUT
VBLNK5
’
TIMOUT
VBLNK 5
#$00
INIT4
i RESET HITS
i SERVICE AUDIO
7~ ATRACT MODE^STUfF
A718 48
PHA
;
PI
A719 8A
TXA
A71 A 48
PHA
A71B 98
TYA
A71C 48
PHA
A71D A9 EO
LDA
•ALPHA/256
A71F AC OB D4
LDY
VCOUNT
A722 CO 60
CRY
' #$60
'
L
USH ALL REGISTERS FOR OP SYSTEM
L A
L J
RA i Ot-
) •
•
VI \< r: 1 UWi
;
.
•
i
t ;
i AO' j.'^h
i
A724 TO 02
BEG
A726 A9 AO
LDA
A726
L) I BNH
1
A 726 BD 09 1)4
j
STA
A72I3 A2 04
LDX
A72D 8D OA 1)4
STA
A730
I> 1 SNM2
A730 B5 F 7
LDA
A7 32 9D 16 DO
STA
A 735 CA
DEX
A736 10 FB
BPL
i
»
A73S AD 08 DO
LDA
A73B OD 09 DO
ORA
A73E OD OA DO
ORA
A741 OD OB DO
ORA
A744 85 83
STA
A746 AD OF DO
LDA
A749 85 02
STA
A74B
POPALL
A74B 68
PLA
A74C A8
TAY
A74D 68
PLA
A74E AA
TAX
A74F 68
PLA
RTI
A750 40
r i
L A
r i
L J
DISNMl
#C GRAPH /256
CHBASE
i USE FUTURE TYPE CHARACTER SET
#$04
WSYNC
COLRAM+9,
X
C0L.PFG, X
DISNM2
READ HITS
HQP L
M1PL
M2 PL,
M3PL
PHITS+1
PHITS+Q
\ PHOTON 3 STORED
7 PHOTON 2 STORED
AH H‘A
I
'
1 'N
f Ah l.'A
1 1:
i!
!
r
IRQ INTERRUPT SERVICE SECTION
A751
IRGVEC
i
PUSH ACC
A751 48
PHA
A752 A9 00
f
!
LDA
#00
A754 8D OE D2
STA
IRQEN
A757 A9 40
LDA
#IRQMSK
A759 80 OE D2
STA
IRQEN
A 7SC AD 09 D2
LDA
KBCODE
A7SF 09 CO
ORA
#*C0
A761 85 CA
STA
THEKEY
A763 68
PLA
A764 40
•V
; V
,
.
.
'
*• ;>*,
•••
*•.•
". 6
t
RTI
'
•;
END PUSH
; RESET IRQ'S
t :
; v!\
+-S-.-V
END IRQ INTERRRUPT SECTION
r i
„
i A t
‘
I
•. r*
1 Ah P
.•
Vi i-
'•
J
..
,
.
.
i
•
.
; A a t , A
j
SUBROU HIMES,
763
L.DINB6
, LOAD OP ME LINE
A765
A768
A769
99
E8
88
A4 00
STA
INX
DEY
NUMPTS*
Y
A76A 10 OF
BPL
LDINS4
A76C
A76F
20 on
uc; A7
JSR
LD I NS T
DRAWER
i
" LOAD INSET
A76F A9 03
A 77 I 85 A
2
A773 2C 95 09
LDA
STA
BIT
RESERVE BYTE**FE
X« INITIAL START OF PNTR IN INSTAB
#*05
_ __
TARPTR
i DEFINE TARGET POINTER
DAMAGE+3
* COMPUTER
A7 76 70 09
BOS
LDINS2
A778
LOINS
I
A778 AO 02
A 77A
A77A BD F9 BA
A77D C9 FE
A77F DO E4
A781
A781 60
A782
A 782
A784
A784
A786
A788
A78A
A78C
A78E
A78E
A790
A793
A795
A798
A79A
A79C
A79D
A79E
A 7AO
A7A2
LDINS2
J
i
DRAWER
LDY
TTda"
CMP
BNE
1
1
'TW 11*".? '-.
i.
•
...
RTS
#*02
TnsTabTx
#*FE
LDINS6
i ALL DONE
i NO
•
'- s
A9 55
85 6B
A5 A4
85 6E
29 7F
85 A4
A4 A5
B9 00
85 68
B9 64
85 J>
9
A5 A6
4A
4A
85 6
A
A5 A
6
:*v • -
29 03_
A7A4 A
8
A7A5 B9 BO BA
LDA
ST*
LDA
STA"
AND
STA
LDY
_LDA_
STA
LDA
STA
LDA
LSR
LSR
STA
LDA
AND
TAY
LDA
#*55
"TentW
tempi
NUMPTS
TEMP 4
#*7F
NUMPTS
. -r TVT" -- •'
VDRAW
VCONLi Y
PNTR
VCQNH, Y
PNTR + 1_
HDRAW
A
A
TEMP
HDRAW
#*03
ft •< "
»
'
I !'•
”
MASK,
Y
DRAW THE LINE
ifNT "From up iNiTililtit****5####®^
-sv C
‘
'•!•>••• ••• vvv:mv
•
V
.
-;v-
.N
•
.
V
.
•
..-.S'
s:*
••
'•
,
• •;vs*'v^*s
,
v.v*>.V.4.o-
•
•’.r*i**yCss*«SS!»J**v
v..
.
•S*.
'
Ki-imt—r .
• H—yr'
-r >.
A7A8 25
t’
*' * AND
TEMPI
A7AA A
4
6A
‘“‘LDY
TEMP
A 7AC 11 68
ORA
(PNTR),
A ?AE 91 68
STA
(PNTR),
A7B0 24 6E
BIT
TEMP 4
:
:
A7B2 10 04
BPL
DRAWR4
A7B4 E6 A5
INC
VDRAW
A7B6 DO 02
BNE
DRAWR5
i JUMP, VDRAW CANNOT CROSS 0
*
!
A7D6
A7D8 E6 A6
A7BA
DRAWR4
DRAWR5"
INC
HDRAW
i
i t-.t\ < A l u< , :
•'
i.
h
’
•
j
i h
1 At f .1
••i
A/BA 06 A
4
A7BC DO DO
a ynt
A7 [if 60
IjR A tv N 2
DEC
arc
RTS
NUMPTS
DRAWR1
; POINTS ALL DRAWN ?
A / D P
UP 1 NBT
A78F AE 5C 09
A7C2 A4.A2
A/C 4 CO 05
A7C6 BO 24
A7C8
A7CA
A7CC
A7CF
A7CF
A 7DO
A7D2
A7D4
A7D6
A7D8
A7DA
A 7DC
A7DE
A7E1
A7E1
A7E3
A7E5
ATE 7
A7E9
A7E9
A7EB
A7EC
A TEC
ATEE
A7F0
A7F2
A7F4
A7F7
A/FA
A7FC
A7FE
A800
A802
A804
A804
A806
A808
A80A
A80A
AQOU
A80D
A80F
A8 12
A5 AO
85 A6
B9
BF
OA
85 6C
90 cib
A9 81
85 A4
AS A1
85 A5
A9 _AA
20 84 A7
*
E6 A6
A 5 * 6C
*
DO E8
E6 A2
60
CO OA
90 F9
B5 E9
FO 3C
BD 71 OA
BC DE 09
FO 08
C9 OC
___
90 OA
A9 OB
10 06
C9 F5
BO 02
A9 F5
18
69 83
05 AO
BD A2 OA
49 FF
UPINS8
UP INS9
UPIN10
UPINS2
UPINS4
UP I NS5
LDX
LBY-
cpv
BCS
Ida’
6TA
ASL
STA
BCC
EDA
STA
LDA
STA
LDA
JSR
INC
LDA
BNE
INC
INC
RTS
CPY
BCC
LDA
BEQ
LDA
Ldy
BEQ
CMP
BCC
LDA
BPL
CMP
BCS
Ida
CLC
ADC
STA
LDA
EQR
UPDATE
INSET
FIRE CONTROL
DCSTOR
;
IARPJR
_
#$05
UPINS2
LB
HTARGT
HDRAW
ZYIMQxX
A
TEMP2
__
UPINS9
#481
NUMPTS
VTARGT
VDRAW
#$AA
"W'f.
1*** "
'T ' ,~T
<'.»v
DRAWR3
HDRAW
_____
___
_____
TEMP2
UPINS8
VTARGT
i rt'«wi»r
•-• >—»
' -» -
I
'
" * 1
TARPTR
#$0A
UPLN10
STFLAGi
X
UP I NS3
YPOSH, X
YSIGN,
X
UPINS4
#*0C
_
__
UPINS5
”
#$0B
UPINS5
#$F5
UPINS5
#$F5
~
i WHICH OBJECT
JUMP
#131
HTARGT
ZPQSH, X
#$FF
L
A
r
i
L j
RA
1 Of:
VI:
l
’ S 1
1. 4't
•} V*
l
>•
1 Mis i • *
’
i
i
i
:.
7 n
A8 1
4
BC OF OA
LDY
zsioro x
A8 1 7 DO 08
BNE
UP 1 1186
A8 1 9 C9 0 5
CMP
4i$05
A8 1 0 90 OA
BCC
UP I NS
7
A8 1 D A9 04
LDA
#$04
A8 1
F
10 06
BPL
UP I NS 7
i JUMP
A821
UP I NS6
AQ21 C9 FA
CMP
. MFA
A823 BO 02
BCS
UP I NS
AG25
A827
A827
A828
A82A
A820
A82E
A830
A9 FA
18
69 4D
85 Al.
A9 ”65
85 A2
UP I NS
7
UP1NS3
A830
A832
A834
A836
A838
A83A
A83A
A83C
AB3C
A83E
A04O
AQ42
A843
A845
A846
AQ48
A84A
A84C
AQ4E
A850
A850
A851
A9 36
85 68
A9 IB
85 69
A2 0E
AO 06
B 1 68
29 55
91 68
§8
10 F7
18
„
A 5 68
69 28
85 68
90 02
E6 69
CA
'
10 E7
UP INI
3
UPIN14
A853 At"
A856 C8
50 09
LDA
—vt yr•
CLC
ADC
STA
LDA
STA
LDA
31A
LDA
STA
LDX
V"
.
•••*•'
•
-
LDY
-.-S'*
LDA
AND
STA
DE7
BPL
CLC
LDA
ADC
STA
TTCJT
JNC
DEX
BPL
Tt— 1«'
P1T »
«'
LDX
I NY
#$FA
#77
VTARGf
*$QQ
TARPTR
CLEAR INSET
« INSET
PNTR
# INSET/ 256
PNTR+1
#14
T P W
»«>
......
•
\
••
•
•
•••
.V.;*..
.
:
: ;
.
'
: f:
• ••••
•
- •:>
.. >.
#$06
...
. ? ....
_. ..
,v
...
...
. .v..
TpntrTTy~“
#$55
(PNTR ) * Y
•
.
•
•
••
'v:
UPIN13
<
>•.
.
...
.... Jl,,
PNTR
“
#40
PNTR
TFimr
PNTR+1
UP INI
2
DONE CLEARINSET
DCSTQR
i Y-0
A857 A 5 88
LDA
LOKWAT
A85-V f-0 04
BEQ
UP INI 1
i
tt
A85B C6 88
DEC
LOKWAT
A85D DO 39
A ri c* r-
BNE
Tam
k < 4 4
UP INS
1
A85F A5
A861 C9
A063 90
A865 C9
A867 BO
A869 A9
A86B 8D
A86E 8D
A87 1 A
5
A873 C9
A87590
A877 C9
AA
FE IB
04 1C
Ai
HTARGT
#129
UP I NS
# 1 33
UP I NS 1
#$AA
IC0N2
ICQN2+6
VTARGf
#75
UPIN81
#79
A879 BO ID
BCS
UP INS 1
A87B A9 AA
LDA
#$AA
A8 /D 8D 9£ 1C
STA
I CON2 +• 160
A880 8D A4 1C
STA
IC0N2+166
Ad83 BD 40 OA
LDA
XPOSH.
X
A886 09 oc~
CMP
#$0C
A888 BO OE
BCS
UP I NS
1
A88A AO AO
„J&L-
#$AQ
. ..
A88C 8C 40 ID
STY
ICQN1
A88F 8C 68 ID
STY
ICQN1+40
A892 8C 42. i n.
.
STY
ICONLtfe ......
A895 8C 6A Id
STY
ICQN1+42
A898
UP INS
1
A898 84 A3
STY
LOKFLG
A89A 60
RTS
i
A89B
HSERVE
HYPERMARP SERV ICE, ROUTINE
A89B
A89D
AQ9F
A4
FO
A5
CO
61
70
—
-
' K
.
•••
•
.,•
•••
K •
•
.
•.
’ !>
' j
'
•
•
.
•
•
•
....
..
*v-
LDY
BEO
trrPA
HFLAG
HSERV4
SPEED
i HWARP
I NO
?
....
•
....
..
...
•.x-.v-sS*.:-.:. •
‘
..
..
.
...
>•••
•
*
•
‘
’.
A8A1 C9 FE
CMP
#$FE
i UP TO SPEED ?
AQA3 BO 5C
BCS
HSERV5
i YES
A8A5 C9 80
CMP
#$80
i DO LINES ?
A8A7 90 03
!
'
‘
'
V
' V
‘
'
'•
'
BCC
HSERV6
i NQ
v
.-sv-
•
.
••
-.•
A8A9 20 B4 A?
•
>•
.. ...
•.
4
;
VSR
HUNES
...
'•
•v yv.y ., V.
L.'.’-.'vIy
;
-i
•' ••••
.•
.
•
•
:.
•
•
•
•
-.
......
A8AC
HSERV6
"s
• v '
1. ....
.
•••;
••
•
•
••
• «.
-4 N.*>.
•
V
.
...
...
.
.
*
fc
’
•
• •
••
"
.
...
'
.
......
;
.
.
i
STEERING STUFF
A8AC A9 03
LDA
#$03
A8AE 8D 5C 09
STA
DCSTOR
ABB 1 A9 90
Li)a
#$90
•'
•.
.•
•.
.
•
' !. .
*7 !' .'*•
"i
’
A8B3 8D 8F OC
STA
6INDEX+3
•• s
. y.y
..
,v.v:>.
• '
. *.
...
.
.
A8B6 85 EC
*
7.,.: 3.O' 333
STA
STFLAG+3
•
’•
..
.7.
i
'
•
’
' *’*
•’
'
ASB8 A9 IF
LDA
#$1F
A8BA 8D 43 OA
STA
XPOSH+3
A8BD 38
SEC
A8BE AD FC OB
' LDA
VPOS+3
.
.
j
“"r" — '
A8C
1
E9 77
•
••••
.
. ..3.^
'!
;
!3
.
. v X
SBC
#UQBCEN~3
....
|'.v
.
•'
.
A8C3 18
CLC
...
.......
••••••»•���
A8C4 65 C5
ADC
VSTEER
A8C6 29 7F
AND
#$7F
A8C8 85 8E
STA
HYVPOS
A8CA 38
SEC
A8CB AD 2D OC
LDA
HPOS+3
A8CE E9 7D
SBC
#HOBCEN
A8D0 18
CLC
A8D1 65 C4
ADC
HSTEER
A8D3 29 7F
AND
#$7F
A8D5 85 8F
STA
HYHPOS
A8D7 A5 62
LDA
MISDIF
A8D9 FO 11
BEG
HSERV7
AQDB AD OA D2
LDA
RANDOM
A8DE A4 DO
LDY
DISFLG
A8E0 FO 06
BEG
HSERV9
ABE2 8D 2D OC
STA
HPOS+3
n
t
STAR RAID!
• i*. S
VERSION 25.
1
STARDA IE 26-vAJL- 79
A8E5 8D FC OB
STA
VPQS+3
ABE8
HSERV9
ABE8 C9 10
CMP
#$10
ABEA BO 14
BCS
USER V
4
A8EC
HSERV7
A8EC AD OA D2
LDA
RANDOM
A8EF 09 10
ORA
#$10
ASF 1 25 C6
AND
STERMK
ASF3 8D 9A OB
STA
YINCRE+3
ASF 6 AD OA D2
LDA
RANDOM
ASF 9 09 10
ORA
#$10
A8FB 25 C6
AND
STERMK
A8FD 8D CB OB
STA
ZXNCRE+3
A900
HSERV4
A900 60
RTS
A901
HSERV5
A90
1
98
TYA
i
I N JUMP 7
A902 30 11
8MI
HSERVB
i YES
i
77','
'
• BEGIN JUMP
•
•*'•••
••
v*
•.
•,•••
.
J.S.V
•••
•••
-
•4.,;
;
.v
.
A904 A9 FF
LDA
#*FF
•
•
...
_
.......
A906 85 CO
STA
HFL.AG
A908 A2 00
LDX
#CH4TB1-CH4TAB
•
A90A 20 A6 B3
JSR
NOTINT
A90D 20 A7 If
JSR
CSERVi
~
i JUMP ENERGY ^
PPP
A910 AO IB
LPY
#5ENHSP-SENTAB
'7V
•
.
• •••
•-
..
.
•.
.•7
'
.
yyy
:;**•• 7:
.
>k£:£.. .>7
.
.
.
: :7
;
:•
A912 4C 8D A9
JMP
HABORl
y.
v
v
••••<*•!< .••
. . v ••. V .•'•
i
;
"
’.
;
A915
HSERV8
i
I N JUMP
A91
5
C6 91
DEC
HYPENG
i ALL DONE ?
A917 FO 05
BEQ
HSER10
i YES
A919 A2 02
LDX
:
"^#$02^
* Sec energy
A91B 4C 6F B8
iun
ydr
PANDS6
•.•.y
v
•-
v
)v.*V Vv
•
...
.
.
..v.
/.
....
A91E
'•
.
;
.
.
*
.7.
V
’.7
'
HBER10
-
:
*
...... ..
••
...y ;--.
?:
.
•
i
HWARP COMPLETE
A91E AO 19
LDY
#SENHWC-SENTAB
A950 20 87 A9
JSR
HAB0R2
A923 AS 8F
m
LDA 11TiYHPOS
P
-.tw !s
.
......
.
;..
.
' +
•*
‘
A92 5 85 BD
STA
GHPOS
•
. A
••• •••
• >:•>
.
:
•
.
'
.
.'.
. ...
A927 AS BE
•
LDA
HYVPOS
V „•
•.
•
•
;
.
.
•
;yy-s
•••h---...
•
.•
....
.
.
...
. y
A929 85 ac
STA
GVPQS
A92B 4A
LSR
A
A92C 29 07
AND
#$07
A92E AA
"
‘
TAX
•r<*9*vmn* ,** m
* "pr '>%*. *
f
-irsry-
A92F BD B3 BF
LDA
JMASK, X
*'*• \
•
* ** v* :v v* ••
•
.
•
.•
.
.
.
......
...
•
.
•
A932 85 C7
STA
JMPMSK
•
...
•
-a
”
A934 A4 92
LDY
HYPQAD
A936 84 90
STY
GUADRT
A938 A9 00
LDA
#$00
A93A 85 7B
sta
BASFLG
v> •• • •
••
•••
-
av...;,
•
-.
.
... Vs."
.
..
.
......
.
..
.
•
•
•••
•:
•
.
.-s V.v .
...
;•
•
.
A93C BE C9 08
LDX
CHTRAM,
Y
...
.
j*
-
'
•
: ,
v
a J **.;
'
’!•
.77'*
'
’
A93F 10 2E
BPL
HSERV2
•
••
a;-
...
!.
.
.... :.y
. y
A941 A9 FF
LDA
#$FF
J STARBASE STUFF
A943 85 7B
STA
BASFLG
A945 AO 00
LDY
#$00
A947
HSERV3
A947 A9 00
'•
.
;
,
t
•
•
•
4
•
LDA
#$00
V
s
7
'.
.
'*
.
.;
'
•
*
•
••
;•
-
;
A949 99 68 OB
STA
XINCRE+2* V
1
-
.
•
.
......
.
.
.
.
’
A94C A9 o i
LDA
#$01
A94E 99 AF 09
STA
XSIGN+2, Y
A951
AOC4
AD
TC
OA 1)2
LDA
a kin
RANDOM
!
,
'j
*'
*
,
.*.*
i r
*
,
.
.•
•. r \
•
i
J
*
:
1. 23 ON
1
• iAhDA
A956 99 42 OA
STA
XPOSH+i>* Y
A959 98
TVA
A9 -'A
1
8
CLC
A9 1- ft 69 3
1
ADC
4RAMMUM
A96D A8
7 AY
A95E C9
CMP
#RANNUM*3
A960 90 E5
BCC
HSERV3
A962 AD 42 OA
.
..LQA
...
XPPSH*-2
•
A965 09 71
ORA
#$? 1
A967 3D 42 OA
STA
XPQSPU-2
A96A A2 02
LDX
#$02
A96C 4C BE W
JMP
NEWST4
A96F
HSERV2
A96F FO OE
8£Q
mERVl
__
.
A971 A9 FF
LDA
#$FF
i RED ALERT
A973 80 8ft
STA
REDFLG
A975 A2 06
IPX
#CH4TB2-CH4TAB
A977 20 A6 ~B3
JSR
NOTINT
A97A AO 75
LDY
#SENREp-SENTAB
A97C 20 23 B2
USR
LDMESS
'
2
.
...
A97F
HSERV1
A97F 60
i
RTS
•••••
.
•>..
..
.
'
*:*:
;
•
•• •••
‘
.
..9
"’
“ 3 .*
A;
'
••••••••
-vO.-.
...
V *:
•
'
•
'
'
'
"
••
i
.
/*.
••••••
••
•
,%v ..
_•
•
......
.
..
-•••
•
;
...
' y
'
'
"
-y. ^yy.
:.
'
;
.
y:.
: ry
.•••••••'
•
•
;
•
••
•
. v
v
.
... ......
.V.
••••
••
•
•*- •••
: v;^,v.-.. . ... ...........
....
•• •
•.
.
.
.
...
.•
.
•
.*
•
'
•3;
'•
:
:
-A.-,
"
"
!**!** *:'*:
;
-
*
*
..s;
•
••
1
*
’* *
'
•
*•
,
,
**
* *'’*.' **
'.'*’* **
!*.*
•
••’•A
,*’**'*
*
/
•
A980
HADORT
i
HYPERWARP ABORT ROUTINE
A980 A2 01
LDX
#$01
A982 20 6F B8
JSR
PAND86
'
A985 AO 17
n.
•
'
'
'
'
•
K
•
LDY
#giNHWAr^PITAB
| ABORT
A987
Hagor
2
j ENTRY POINT HWARP COMPLETE #####*#*#*#############
A98 7 A9 00
,
LDA
#$00
A989 85 71
STA
WARP
A98B 05 CO
STA
HFLAG
A98D
HABOR
1
i ENTRY POINT BEGIN JUMP ##############*##*#*#*##**
A98D A9 10
v.
:;*?y
i
:>
:‘
.
v ' '•
LDA
#STLAST
A9QF 85 79
•
..
y !'
•*
;
' !'•/ V
' STA
NSTARS
A99
1
A9 00
LDA
#$00
A993 85 Cl
STA
HISPED
A995 05 73
STA
ETIMER
i KEEP PROGRAM FROM GOING SOUTH
A997 85 8A
STA
HITME
i CLEAR THE OTHER EXPLOS BUG
A999 8D 8F OC
STA
GINDEX+3
A99C 85 80
.v.
'
.
; STA
WPENER
A99E CO 17
CPY
#SENHWA-SENTAB
A9AO FO 04
BEG
HAB0R3
A9A2 85 E9
STA
STFLAG+O
A9A4 85 EA
~ STA
STFLAG+1
A9A6
HABQR3
3
;yy.
,, ;
y
A9A6 85 ED
STA
STFLAG+2
A9A8 85 EC
STA
STFLAG+3
A9AA 85 ED
STA
STFLAGt4
A9AC 85 75
STA
BSEGTM
A9AE 8D 50 09
STA
DCSTOR
A9Q
4C 23 B2
JMP
•
•
LDMESS
i
i
i
A9B4
HL1NES
H
f‘ A i 1)1!, R S t
Vl r
• 0» f
.
.*
t.f
•
1 1
A9B4 C 6 r 2
DEC
A906
1 0 68
BPL.
A9DS A9 0
1
L DA
n9 tJ r't B5 Cl
STA
A9BC A9 30
LDA
A9BE 85 79
STA
A9C0 A9 03
LDA
A9C2 85 C2
STA
A9C4 A6 C3
i
_
LDX
A9C6
HL I ne;
'I
DRW HWARP LI WES
NT 1 MLR
HI INF t
#*01
HI SPED
#RMLAST
NSTARS
**03
HTIhER
RESET LINES
HPNTR
HWARP STARS ON
A9C6 A9 12
LDA
#*12
A90S 85 69
STA
PNTR+1
A9CA AD OA D2
LDA
RANDOM
A9CD 29 03
AND
#*03
A9CF AS
TAY
A9D0 B9 3A QQ
LDA
T
'
- —~"*
-rrr*i
YINITi
Y
A9D3 9D 71 OA
STA
YPOSH, X
A9D6 B9 3E BB
LDA
IJNII* Y
A9D9 9D A2 OA
STA
ZPOSHi X
A9DC 20 BE B7
JSR
NEWST4
A9DF 8A
TXA
A9E0 AS
TAY
A9E1 A9 05
A9E3 85 6E
A9E5
LDA
STA
#*05
TEMP4
.
...
•X*
•
XINIT
i INIT Y; Z
WHICH QUADRANT
HLINE4
1 * GOES TQ V
jg STARS
A9E5 18
CLC
A9E6 A5 68~
'
LDA
PNTR
•••'
*y
v
.
.Vs-
'
•
•
v
vs!-
A9E8 69 50 %
A9EA
A9EC
A9EF
A9F1
A9F3
A9F5 9D 40 OA
A9F8 A9 00
A9FA
'
A9FD
AAOO
9D 66 OB
9D 97 OB
9D C8 OB
AA03 A9
AA05 9D
AA08 A
9
AAOA 9D
MOD 9D
AATO 20
AA13 CA
AAI4 EG
AA 1 6 BO
AA18 A2
AA 1
A
Mi A C6
AAlC 10
AA1E 86
AA20
AA20 60
01
AD
63'
F9
2a_
Cl
U
02
30
09
OB
oc
AC
ADC
.
x
•
•
SJ*.
• x-..-.
,
...
_
...
68
••
• *
...4. J..S
. v
•
• /V
.
STA
PNTR
D3 OA
STA
XPOSLi X
“
~
•*
69
LDA
PNTR+1
00
,
7"
ADC
—
,
i,
,
.
.
.
#*00
STA
LDA
XPOSH, X
#*00
STA
STA
STA
XINCRE/X
YINCRE,
X
ZINCRE<
LDA
STA
LDA
STA
STA
#*01
XSIGN# X
#99
VPOS, X
HPQS/ X
| ^
....
r
j AND THAT FIXES THAT
f OFF-SCREEN
HLINE3
JSR
DEX
CPX
BCS
LDX
EXHLP1
#STLAST+J
HL INE3
#RMLAST
> DEFINE YTT
-nf. i «f-«— rw—.—
6E
C7
C3
wi' h
i m nn
DEC
BPL
STX
TEMP4
HLINE4
HPNTR
HLINE1
RTS
i
ft.A i
I
.
,;i
•
i
.
.
‘
i ..'
! T 1 1,1
• •
.
>
.
1 }>'*.
...
.
-i
...
! .•'l-'i Vi
t L
i!
•!
r
A*S2 L
AA34 4A
AA 3 5 85 69
AA37
AA3A
AA3B
A A3D
BD D3 OA
6A
85. 68
o
*C 52 A
A
AA40
AA40 3.8
_
AA41 A9 00
AA43 FD D3 OA
AA46 85_68
AA48A9 00
AA4A FD 40 OA
AA4D 4A
AA4E
AA50
85 69
66 68
AA52
AA52 06 6D
AA54_38
AA55 A5 6A
AA57 E5 68
DIVIDE
A -
(
\ OP /DO 1
1 OH
> X80
AA21 A9 00
LDA
#$00
AA23 05 613
STA
TEMP3
AA2 5 A9 07
LDA
#$07
AA2 7 85 6E
STA
TEMP4
SHIP
AA29 46 6B
LSR
T£ MP
1
AA2B 66 6A
ROR
TEMP
AA2D AS DO
LDA
DISFLG
; CLEAR THE RESULT
A number of shifts
INTO THE MSB IT
i TOP NUMBER
; FRONT OR BACK
?
AA2F DO OF
BNE
DIVIDE
i BACK
AA3 1 BD 40 OA
LDA
XPOSH,
X
i BOTTOM NUMBER
LSR
SIA
A
PNTR+1
LDA
ROR
STA
XPQSL* X
A
DIVID1
JMP
SEC
DIVID2
LDA
SBC
STA
#$0Q
XPOSL* X
PNTR
«
! wyr-y
LDA
SBC
LSR
#$00
XPOSHi X
A
STA
ROR
PNTRtI
PNTR
i
DIVID2
ASL
SEC
TEMP3
i SHIFT RESULT
i SUBTRACT BOTTOM FROM TOP
LDA
SBC
TEMP
PNTR
AA5A A5 6B
L
AA5C E5 69
£
AA5E 90 06
E
.DA
TEMPI
>BC
PNTR+1
ICC
DIVID3
i BOTTOM GREATER THAN TOP
;
TOP LARGER
AA60 85 6B
STA
TEMPI
I STORE REMAINDER
AA62 84 6A
STY
TEMP
AA64 E6 6D
INC
TEMP3
i ADD
1 TO RESULT
AA66
DIVID3
AA66 06 6A
ASL
TEMP
; SHIFT TOP
' AA68 26 6B
'
,
• f
AA6A 90 03
£
t
ioC/
TEMPI
ICC
DIUID4
IF TOP IS GREATER THN BOTTOM THEN OVERFLOW
AA6C A9 FF
L
AA6E 60
F
AA6F
DIVID4
.DA
#$FF
i MAX VALUE TO RESULT
ITS
AA6F C6 6E
E
AA71 10 DF
I
AA73 A4 6D
t
)EC
TEMP4
i NEXT BIT
iPL
DIVID2
DY
TEMP3
i RESULT IN Y
AA75 B9 E9 OD
L
AA78
DIVID5
AA78 60
h
.DA
PTAB,Y
i MULTIPLY BY 80
ITS
•
•
AAV 9
TH I NK
t
COMPUTER ATTACK SUBROUTINE
AA79 A5 CO
•
LDA
HFL.AG
AA7B 05 7B
«
ORA
BASFLG
AA7D DO F9
BNE
DIVID5
i BRANCH JS.JTS
i
CRUISER PHOTON CONVERGENCE
AA7F AD 86
LDA
LOKLOC
AA8
1
FO 30
BEG
.
1HIN38.
AA83 A6
'*•—’**-
-t-r-r—
89
LDX
LOKTAR
AA85 38
.
.
. a SEC
AA86 BD F9 OB
LDA
VPOS, X
AA89 ED FC OB
SBC
VPOS+3
AABC 90 02
BCC
THIN37
AA8E A9 00
LDA
#1iOO
........
AA9G
THZN37
AA90 20 CA AE
.
.
•
,
..
. JSR
POHELP
AA93 8D CB OB
.
•
••
•
‘ V *v STA
ZINCRE+3.
AA96 8D cc OB
STA
ZINCRE+4
AA99 38
SEC
AA9A AD 2D OC
LDA
HPOS+3
AA9D FD 2A OC
. ;
V?;
,F, SBC
! HPdS/ x
AAAO 20 CA AE
'•
•
--A*.*.-
.....
‘
USB
POHELP
AAA3 8D 9A OB
vs-
;•
STA
YINCRE+3
AAA6 38
SEC
AAA7 AD 2E OC
LDA
HPOS+4
AAAA FD 2A OC
SBC
HP OS*
X
AAAD 20 CA AE
'
r;.
"
.
•'
...
.
;.
.
•• v.-.
••••••*. JSR
POHELP
AABQ 8D 9B OB
-•
•
••
:
;
•
.
• /
-
7
• ••
#
STA
vCy
•
•
YINCRE+4
X T
.
?
.
"
' c
:
, ; r.
yV:;':;-
;
:
" % :
•
•
•
'
•• •••'•
.
*
.
•:
AAB3
THIN3B
j
HELPER FOR THINK
AAB3 "A2~~03
iTTVM «*03
'
'
:
'
-
AAB5
THIN39
..
!
y**-
•'
*••••:• .*••••>• t-\
•
•
•
••
•
•
•
•••
AAB5 D6 BA
DEC
ROTTIM.
X
AAD 7 10 27
BPL
THIN44
AAS9 8A
TXA
AABA 4A
LSR
A
AABB A8
1
'w
1 111
1
'
••
•
•
..•<•-
•• ••
....
•
•••
•••
•
.>.•••»
.
......
.....
...
•
.
,
.
••
•,
TAV
’
•
•
•
.......
...
;
•
’•*
•••*•
:
•
v.
.*•
•
'• ••
•
••
•
.•
••
•.••.
.
.
•
.
.
.
’
•••
•.
.
v .
y...
.
...
->•••>
•••••
••
.
•*.
;....
;
;
•.
...
AABC B9 C8 00
•
‘
’
•
••
•
-v
•
.sjy/s
LDA
HORJOY,
Y
AABF A4 DO
£
" 2\ VcF LDY
DISFLG
AAC 1 FO 05
BEQ
THIN40
AAC3 49 FF
EOR
#*FF
AAC 5 18
CLC
AAC6 69 01
"u:.:-. v:
ADC
#$01
AAC8
THIN40
L;’!
•'
;**>•••
••
......
...
;
..
.
•••*•;
•
•'
•
•
•
••
•
.
•
AAC8 18
•
..
* / CLC
AAC 9 75 B4
ADC
X INPRS+2*
X
AACB 10 02
BPL
THIN41
AACD A9 00
LDA
#$00
AACF
v
'
THIN41
•
...
*
.
.
.1
.; ).
'
•
••
•••
•
-v-.
•.
.
<%
.
•
• ..
•
1
•
•
...
•
•
- v
.
•
*
!
‘
'r
,
1
‘
•
••
•
••
...
..
..
.
.
....
.'
v . .).
.
•.
.
•
.
.
...
...
AACF C9 10
•
•
'
'
.
*•
.
.
.
.
*••••
•
•
.
• :
••••:
•:
•• :
. ,
-y
y.
.
CMP
#*io
AADl 90 02
"
v
.
.
v.
;
-
;
:
'V F-
"
-T' BCC
THIN42
AAD3 A9 OF
LDA
#$0F
AAD5
THIN42
AAD5 95 B4
STA
X INPRS+2#
AAD7 C9 08
•
* '
•
•:•••
••
•;
•
•
r
.
CMP
#$08
IN IT ZYL.ON
AD 4 2 AS E9
LDA
STFL.AGtO
' A 13 44 05 FA
GRA
s r FLAO
1
AM 4 1< 29 01
AND
#toi
A Is 48 A 4 90
LDY
QUADRT
'
A 13 4 A 09 09 08
CMP
CHTRAh*
Y
AB4D BO BA
BCS
THINK!
i
OK TCI INIT
~~~
AB4F A9 FF
LDA
#$FF
AB51 95 F.9
STA
BTFLAQ> X
AB53 AD OA 02
LDA
RANDOM
A3 56 29 07
. , , ,---r -----
1
* IT