B.PDF

(14 KB) Pobierz
Appendix B
DIRECTIVE SUMMARY
Assembler directives can be grouped by function into seven types:
1.
2.
3.
4.
5.
6.
7.
B.1
Assembly control
Symbol definition
Data definition/storage allocation
Listing control and options
Object file control
Macros and conditional assembly
Structured programming
ASSEMBLY CONTROL
The directives used for assembly control are:
COMMENT
DEFINE
END
FAIL
FORCE
HIMEM
INCLUDE
LOMEM
MODE
MSG
ORG
RADIX
RDIRECT
SCSJMP
SCSREG
UNDEF
WARN
- Start comment lines
- Define substitution string
- End of source program
- Programmer generated error message
- Set operand forcing mode
- Set high memory bounds
- Include secondary file
- Set low memory bounds
- Change relocation mode
- Programmer generated message
- Initialize memory space and location counters
- Change input radix for constants
- Remove directive or mnemonic from table
- Set structured control branching mode
- Reassign structured control statement registers
- Undefine
DEFINE
symbol
- Programmer generated warning
MOTOROLA
DSP ASSEMBLER REFERENCE MANUAL
B-1
Directive Summary
Symbol Definition
B.2
SYMBOL DEFINITION
The directives used to control symbol definition are:
ENDSEC
EQU
GLOBAL
GSET
LOCAL
SECTION
SET
XDEF
XREF
B.3
- End section
- Equate symbol to a value
- Global section symbol declaration
- Set global symbol to a value
- Local section symbol declaration
- Start section
- Set symbol to a value
- External section symbol definition
- External section symbol reference
DATA DEFINITION/STORAGE ALLOCATION
The directives used to control constant data definition and storage allocation are:
BADDR
BSB
BSC
BSM
BUFFER
DC
DCB
DS
DSM
DSR
ENDBUF
B.4
- Set buffer address
- Block storage bit-reverse
- Block storage of constant
- Block storage modulo
- Start buffer
- Define constant
- Define constant byte
- Define storage
- Define modulo storage
- Define reverse carry storage
- End buffer
LISTING CONTROL AND OPTIONS
The directives used to control the output listing are:
LIST
LSTCOL
NOLIST
OPT
PAGE
PRCTL
STITLE
TABS
TITLE
- List the assembly
- Set listing field widths
- Stop assembly listing
- Assembler options
- Top of page/size page
- Send control string to printer
- Initialize program subtitle
- Set listing tab stops
- Initialize program title
B-2
DSP ASSEMBLER REFERENCE MANUAL
MOTOROLA
Directive Summary
Object File Control
B.5
OBJECT FILE CONTROL
The directives used for control of the object file are:
COBJ
IDENT
SYMOBJ
B.6
- Comment object code
- Object code identification record
- Write symbol information to object file
MACROS AND CONDITIONAL ASSEMBLY
The directives used for macros and conditional assembly are:
DUP
DUPA
DUPC
DUPF
ENDIF
ENDM
EXITM
IF
MACLIB
MACRO
PMACRO
B.7
- Duplicate sequence of source lines
- Duplicate sequence with arguments
- Duplicate sequence with characters
- Duplicate sequence in loop
- End of conditional assembly
- End of macro definition
- Exit macro
- Conditional assembly directive
- Macro library
- Macro definition
- Purge macro definition
STRUCTURED PROGRAMMING
The directives used for structured programming are:
.BREAK
.CONTINUE
.ELSE
.ENDF
.ENDI
.ENDL
.ENDW
.FOR
.IF
.LOOP
.REPEAT
.UNTIL
.WHILE
- Exit from structured loop construct
- Continue next iteration of structured loop
- Perform following statements when
.IF
false
- End of
.FOR
loop
- End of
.IF
condition
- End of hardware loop
- End of
.WHILE
loop
- Begin
.FOR
loop
- Begin
.IF
condition
- Begin hardware loop
- Begin
.REPEAT
loop
- End of
.REPEAT
loop
- Begin
.WHILE
loop
MOTOROLA
DSP ASSEMBLER REFERENCE MANUAL
B-3
Zgłoś jeśli naruszono regulamin