
Directives Reference
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
7-5
Examples
Example 7-1 declares a variable
objectsize
, sets the value of
objectsize
to
0xFF
, and
then uses it later in a SPACE directive.
Example 7-1
GBLA objectsize ; declare the variable name
objectsize SETA 0xFF ; set its value
.
. ; other code
.
SPACE objectsize ; quote the variable
Example 7-2 shows how to declare and set a variable when you invoke
armasm
. Use this
when you need to set the value of a variable at assembly time.
-pd
is a synonym for
-predefine
.
Example 7-2
armasm -pd "objectsize SETA 0xFF" -o objectfile sourcefile
Содержание 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 ...