Directives That Initialize Constants
4-11
Assembler Directives
4.4
Directives That Initialize Constants
This section describles several directives that assemble values for the current
section.
-
The .bes and .space directives reserve a specified number of bits in the
current section. The assembler fills these reserved bits with 0s.
You can reserve words by multiplying the desired number of words by 16.
J
When you use a label with .space, it points to the
first word that
contains reserved bits.
J
When you use a label with .bes, it points to the
last word that contains
reserved bits.
Figure 4–1 shows the .space and .bes directives. Assume the following
code has been assembled for this example:
1
2 ** .space and .bes directives
3
4 000000 0100 .word 100h, 200h
000001 0200
5 000002 Res_1: .space 17
6 000004 000f .word 15
7 000006 Res_2: .bes 20
8 000007 00ba .byte 0BAh
9 ** reserve 3 words
10 000008 Res_3: .space 3*16
11 00000b 000a .word 10
Res_1 points to the first word in the space reserved by .space. Res_2
points to the last word in the space reserved by .bes.
Figure 4–1. The .space and .bes Directives
17 bits
reserved
20 bits
reserved
Res_1 = 02h
Res_2 = 06h
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......