Terminate Local Symbol Block
.newblock
4-73
Assembler Directives
Syntax
.newblock
Description
The .newblock directive undefines any local labels currently defined. Local
labels, by nature, are temporary; the .newblock directive resets them and
terminates their scope.
A local label is a label in the form $n, where n is a single decimal digit. A local
label, like other labels, points to an instruction word. Unlike other labels, local
labels cannot be used in expressions. Local labels are not included in the
symbol table.
After a local label has been defined and (perhaps) used, you should use the
.newblock directive to reset it. The .text, .data, and named sections also reset
local labels. Local labels that are defined within an include file are not valid out-
side of the local file.
Example
This example shows how the local label $1 is declared, reset, and then
declared again.
1 .ref ADDRA, ADDRB, ADDRC
2 0076 B .set 76h
3
4 000000 1000! LABEL1: LD ADDRA, A
5 000001 F010 SUB #B, A
000002 0076
6 000003 F843 BC $1, ALT
000004 0008’
7 000005 1000! LD ADDRB, A
8 000006 F073 B $2
000007 0009’
9
10 000008 1000! $1 LD ADDRA, A
11 000009 0000! $2 ADD ADDRC, A
12 .newblock ; Undefine $1 to reuse
13 00000a F843 BC $1, ALT
00000b 000D’
14 00000c 8000! STL A, ADDRC
15 00000d F495 $1 NOP
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......