APPENDIX
5
EXPRESSIONS
WheD
an insrrucrion
or
djrefljve
calls
fora
number
in the
op€rand,lhe
number
may
be
given
as
an
,,expafession.',
the n
*1i**r.'..
a'
"*i,"".;;;
i:"ffii;
i[T
"'
ffieraused
being
the varue
or the
Exprcssions
are rnade
up
ofoperators
and
Lerms.
Terms
are either
numbers
or
laDels
which
sfand
for
numbers.
An
expression
conLaining
a
f"Ua
,.rrn_,f,ri
cloe8
not
have
a nlrmeric
value
will
be
nagged
as
an
error.
There
are
five
operatorsj
four
are
arithmetiq
and
one
is logicat.
Addirion
is
signified
by rhe
6ign
subtraction
i6 signified
by
the
sjdn
Mrdriplicarion
is
sjqnified
bv
Division
is signifiea
by
"
,
Logicai
AND
i6 signified
by
ajr
Expre$ions
must
not
contain
parentheses.
Expressions
are
evaluared
from
tefi
to fighr.
Examples:
*:$90+1002
JMP
3
+
2*25'4./5_
3
JMP
0097
JMP
$0061
1oo
LDA
*NUM1+NUM2
NUMI
and
NUM2
must
be defined
some-
where
in
the program.
The
instruction
loads
the AccumuGtor
with
the
sum
of
the
numbers
in
the locations
NUM1
and
NUM2.
L-DA
i-ABf,L
€p
$00FF This yields
I he
low
order
b}1e
of rhe value
rr^
QUL
ofLABEL_
3lf
J'ABE
' 56
*i""*'*;H.ntto
"rder
orb''te
orthe
i
' |
i
i
I
j
I
I
. l
. t
. i
- u
I
il
I
I
100
200
300
400
600
610
620
630
These
instructions
are equivalent.
-
ATARI'
3
-
CONTENTS
7
-
APPENDICES
8
-
ILLUSTRATIONS
9
-
INTRODUCTION
11
-
ASSEMBLER
12
-
EDITOR IS USED
12
-
Object Program
13
-
ALLOCATING
15
-
FORMAT-HO\^/
18
-
TO WRITE A
18
-
STATEMENT
18
-
6Anz"t.. *qn
19
-
' t
19
-
""^^*
19
-
COMMANDS
25
-
FrND/souGHT/,4
26
-
'lu
28
-
PRrNT3O
31
-
'-Jfl
36
-
Ii,8i!-t:?iTii"{:ffi
36
-
DIRECTIVES
37
-
_ ,, 1 I I
39
-
DIRECTIVE
41
-
DEBUGGING
45
-
I '
47
-
<nwl@
50
-
APPENDIX
53
-
(Alphabetic
55
-
SPECIAL
57
-
!FElFIgEiEEEEE
59
-
EXPRESSIONS
61
-
-"8
65
-
*Y.-ilr' 4)
66
-
,"d"/
67
-
4::'
68
-
"-.;$".tt$r"d
69
-
REFERENCES
71
-
5i,+,w+illlii:#,*ulrr'
73
-
ExcLoR.oBJ
74
-
***$ffi*t**lm*fisl*ffi
75
-
""0
85
-
;:,fi?,f
87
-
:;H",fl
87
-
'1",*:#
87
-
' j '
91
Commentaires sur ces manuels