
HOW
TO
\
/RITE
This
section
showshow
to
write
operands. The
examples
use statemenr
number
OPERANDS
xxxx
(also
caled line
number
xxxx).
An
insiructi;
entered
without
a siate_
ment
number
is not
alowed
by the
Editor.
.
The
examples
use By
(for
b)1€)
and ABS
(for
absotuie)
as a one_byte
and
a two_
byte
number,
respectjvety.
Thi$
use implies
rhar
the
proeram
i;cludes
defini_
rions
ofBy and
ABS rs. ror
exdmptc:
0100 By=
155
0200 1\85=567
pl€ase
refer
to rhe
d€scripiion
ofthe r,ABL
=
direcrive
fbr
an exptanarion
ofthe
definitions
of lines
1oo
and 200.
Hexadecimal
Operands
A number
is interyrcied
as a decimat
number
unless
ii is preceded
by
g,
in
which
case it is interpreied
as a hexadecimal
number.
Examples:
30 sTA
99325
80 ASL
915
Imrnediare
Operands
,\n immediate
operad
js_
an operand
that
contains
the dara
ofrhe instruction.
The pound
sign
(/l
must
be
p;sent
io indicate
an immediar€
operand.
E"xamples:
40 LDA i72
70 oRA ,fg3c
1OOO
CPY
/BY
Pag€
Zero
Operands
when_an
operand
is
a number
less
than 2s5
decimdl,
(FF
h€x)
and is
not
immediate,
the
number
is inrerpreted
a$
a
page
zero
address.
Example8:
150 LDX
912
250 ROR
33
5OO DEC
!Y
Absolute
Operands
Absotuie
operands
are evaluated
as
16_bii numbers.
Examples:
20
LDX
91212
40
cPY 2345
990 DEC
579
2350
nIT
AB5
Absolure
tndexed
Operands
An absotut€
indexed
operand
uses
regist$
x or
y.
The
operand
is written
_,x
or
_,Y
-
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
Komentáře k této Příručce