This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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?

0