Appendix
B.
Assembler
Directive
Summary
SUMMARY
OF
DIRECTIVES
FORMAT
Label
Opcode
Operand(s)
oplab:
DB exp(s) or string(s)
oplab:
DS
expression
oplab:
DW
exp(s) or str ng(,)
oplab: ELSE null
opldb:
END
c xpre,>,ion
oplab: ENDIF null
EQU
opldb:
IF
expres'>lon
oplab:
ORG
ndme
SET
exprC,»loll
MACRO
DIRECTIVES
FORMAT
Label
Opcode
Operund(s)
null
ENDM
null
oplab:
EXITM
null
oplab:
IRP
dummy
par.lm,<list>
FUNCTION
Define 8-bit data bytc(s). Expressions must eVdluatc
to
olle byte.
Re')erve data storage area
of
specified length.
Define 16-bit data word(s). Strings limited to
1-2
characters.
Conditional assembly. Code between ELSE and
ENDIF
directive')
is
assembled if expression
in
IF
clau,e i,
F/,LSE.
(See IF.)
Terminate
,J'>scmbler
pa'>'>.
Mu'>t
be
last
,tatement
of
program. Program execution starts at
'exp,'
if
present;
othcrwi')e, dt locdtion
O.
Termindte conditional ds,embly block.
Define
,>ymhol
'n,lme' with value
'exp.'
Symbol
i'>
not
rcdefindhlc.
A.,,>cmhle
code hetween
IF
and following ELSE or
ENDIF dircLlivc
if
'exp'
i'>
true.
Set locatioll c()unter to 'expre,>,>ion.'
Defillc .,ymbol
'n.lme' with v,ilue 'cxprc'>Si()n.'
Svmbol
Cd'l
be
rL'det
illL'l1.
FUNCTION
Terminate macro definition.
Alternate
terminator
of mdcro definition. (See ENDM.)
Repeat instruction '>equence, substituting one character
form 'list' for
'dummy
param'
in
each iteration.
ALL
MNEMONIC5©7974,
7975, 1976, 7977
INTEL
CORPORA
TlON
8-2