.space/.bes
Reserve Space
4-80
Syntax
.space
size in bits
.bes
size in bits
Description
The .space and .bes directives reserve
size number of bits in the current sec-
tion and fill them with 0s.
When you use a label with the .space directive, it points to the
first word
reserved. When you use a label with the .bes directive, it points to the
last word
reserved.
Example
This example shows how memory is reserved with the .space and .bes direc-
tives.
1 *********************************************
2 ** Begin assembling into .text section. **
3 *********************************************
4 000000 .text
5
6 *********************************************
7 ** Reserve 0F0 bits (15 words in the **
8 ** .text section). **
9 *********************************************
10 000000 .space 0F0h
11 00000f 0100 .word 100h, 200h
000010 0200
12 *********************************************
13 ** Begin assembling into .data section. **
14 *********************************************
15 000000 .data
16 000000 0049 .string ”In .data”
000001 006E
000002 0020
000003 002E
000004 0064
000005 0061
000006 0074
000007 0061
17 *********************************************
18 ** Reserve 100 bits in the .data section; **
19 ** RES_1 points to the first word that **
20 ** contains reserved bits. **
21 *********************************************
22 000008 RES_1: .space 100
23 00000f 000F .word 15
24 000010 0008” .word RES_1
25
26 *********************************************
27 ** Reserve 20 bits in the .data section; **
28 ** RES_2 points to the last word that **
29 ** contains reserved bits. **
30 *********************************************
31 000012 RES_2: .bes 20
32 000013 0036 .word 36h
33 000014 0012” .word RES_2
Содержание 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: ......