Writing ARM and Thumb Assembly Language
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
2-51
2.10
Describing data structures with MAP and FIELD directives
You can use the
MAP
and
FIELD
directives to describe data structures. These directives are
always used together.
Data structures defined using
MAP
and
FIELD
:
•
are easily maintainable
•
can be used to describe multiple instances of the same structure
•
make it easy to access data efficiently.
The
MAP
directive specifies the base address of the data structure. Refer to
MAP
on
page 7-15 for further information.
The
FIELD
directive specifies the amount of memory required for a data item, and can
give the data item a label. It is repeated for each data item in the structure. Refer to
FIELD
on page 7-16 for further information.
Note
No space in memory is allocated when a map is defined. Use define constant directives
(for example,
DCD
) to allocate space in memory.
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...