Keil™, An ARM® Company

Discussion Forum

Variables in Assembler

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
george powell
Posted
7-May-2008 22:32
Toolset
ARM
New! Variables in Assembler

I see that variables can be defined in assembler in ARM by using

I.ARM.__AT_<ADDR> I

for example:-

AREA I.ARM.__AT_0XFFE0 I, CODE READONLY

But what if I want to define a list of variables? Is there an ARM assembler equivalent to the below listing that most non-ARM assemblers would support?

ORG 0x020000000
myvar1. DS 1
myvar2. DS 1
myvar3. DW 1
myvar4. DW 1

or do I have to repeat

I.ARM.__AT_<ADDR> I

for every single variable and work out the individual addresses? I also need to find a way to specify 16bit or 32bit variables. Can anybody sort me out?

Read-Only
Author
Tamir Michael
Posted
7-May-2008 23:03
Toolset
ARM
New! RE: Variables in Assembler

depending on your assembler, you can try here:
http://www.arm.com/documentation/Software_Development_Tools/

Next Thread | Thread List | Previous Thread Start a Thread | Settings