ask for helps in instruction:ADR{cond} Rd, label

Note: This was originally posted on 3rd September 2012 at http://forums.arm.com

ADR.W    R1,F4_ROM       ;F4_ROM is the label of the table below
    STR     R1,[R0]
    ..........
F4_ROM
    .short   0x100,0x200
    .short   0x300,0x400

when i use the instruction ADR.W above,the compiler tells : [E0200] Offset out of range.how can i  solve the promble? thanks.

Parents
  • Note: This was originally posted on 4th September 2012 at http://forums.arm.com


    hello,webshaker, how can i get the lower16/upper16 of the F4_ROM, F4_ROM is not a constant.by the way,the compiler i use is TI's ccs5.2.


    That's right.
    But the linker know the value of the address F4_ROM

    Just try the code I gave you that should work !
Reply
  • Note: This was originally posted on 4th September 2012 at http://forums.arm.com


    hello,webshaker, how can i get the lower16/upper16 of the F4_ROM, F4_ROM is not a constant.by the way,the compiler i use is TI's ccs5.2.


    That's right.
    But the linker know the value of the address F4_ROM

    Just try the code I gave you that should work !
Children
No data
More questions in this forum