Operator`s manual
ASSEMBLY
LISTING
(.to-coL
forrnat)
0100
;CONDITIONAL
ASSEMBLY
E
XAMPI,E
oooo 0120 z
=
o
0000 0130
*=
$5000
5000 A945
0140 LDA
r$45
5002 0150
.
rF
z@zNoTEQUA
LO
5002 AA 0160
TAX
;
THIS CODX
ASSEMBI,ND IIF Z=O
0170 zNoTEQUAr,o
5003
0180 .IF Z I@ZNOTEQ
UAIl
O19O
ASL A
0200 ZNOTEQUAT-1
5003 x8
0210 INX
;
THIS CODE AIWAYS
ASSEMBLED
O1OO
;CONDITIONAL
ASSEMBLY
E
XAMP]-E
OOOI
O12O Z
=
1
0000
0130
*=
$5000
5000 ,4.945
0140 r,DA
445
5002 0150
.IF Z@ZNOTE
IU1.
LO
0160
TAX
;THIS
CODE ASSXMBL
ED IFE
Z=O
0170 zNoTnQUALO
5002
0180 .IF Z-1@ZNOTE(!
UALl
5002
0A 0190 ASL A
02oo zNoTnQUALI
5003 E8
0210 INX
;
THTS
CODE ALIl!r'AYS ASSEMBI,XD
END Directive
loo0
. tND
Every
prcgram
should have
one and
only one END
directive. It tells
the
Assembler
to
stop assembling.
It should
com€ at the v€ry
end of
your
source
program.
Later,
if
you
decide
to add more
statements to
your
program, you
shornd
remove the
old . END directive
and
place
a new oni
at tlie iew end of
your
source
program.
Failue io
do m w.ill result
in
your
added
sourc€ code not
being
a€sembled. Thi6
misiake is pafticularly
ea6y to make when you
make
your
additions with
the NUM command.
It is not
always essential
to have an
. END
directive,
but it is
good practice.