Download DSP56309EVM User`s Manual

Transcript
Assembler Directives
Note the following sequence:
; Counter value currently 1
LIST
; Counter
LIST
; Counter
NOLIST
; Counter
NOLIST
; Counter
value
value
value
value
=
=
=
=
2
3
2
1
The listing still would not be disabled until another NOLIST directive was issued.
Note:
A label is not allowed with this directive. See also NOLIST, OPT.
Example C-54. LIST Directive
IF
LIST
ENDIF
LISTON
; Turn the listing back on
C.3.34 LOCAL Local Section Symbol Declaration
LOCAL
<symbol>[,<symbol>,...,<symbol>]
The LOCAL directive is used to specify that the list of symbols is defined within the
current section, and that those definitions are explicitly local to that section. It is useful in
cases where a symbol is used as a forward reference in a nested section where the
enclosing section contains a like-named symbol. This directive is only valid if used within
a program block bounded by the SECTION and ENDSEC directives. The LOCAL
directive must appear before <symbol> is defined in the section. If the symbols that appear
in the operand field are not defined in the section, an error is generated.
Note:
A label is not allowed with this directive. See also SECTION, XDEF, XREF.
Example C-55. LOCAL Directives
SECTION
LOCAL
.
.
.
ENDSEC
IO
LOOPA
; LOOPA local to this section
C.3.35 LOMEM Set Low Memory Bounds
LOMEM
<mem>[<rl>]:<expression>[,...]
The LOMEM directive establishes an absolute low memory bound for code and data
generation. <mem> corresponds to one of the DSP memory spaces (X, Y, L, P, E). <rl> is
one of the letters R for runtime counter or L for load counter. The <expression> is an
absolute integer value within the address range of the machine. If during assembly the
C-30
DSP56309EVM User’s Manual
Motorola