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


    Try:

      LDR  r1, =F4_ROM


    hello, the compiler is TI's ccs5.2 ,it does not support   LDR  r1, =F4_ROM. now i want to use the first address of the table,is there other instructions functions?i know  LDR  r1, =F4_ROM is supported by KEIL.
Reply
  • Note: This was originally posted on 4th September 2012 at http://forums.arm.com


    Try:

      LDR  r1, =F4_ROM


    hello, the compiler is TI's ccs5.2 ,it does not support   LDR  r1, =F4_ROM. now i want to use the first address of the table,is there other instructions functions?i know  LDR  r1, =F4_ROM is supported by KEIL.
Children
No data
More questions in this forum