Closed jeromebon closed 7 years ago
PC relative loads can be done using the following syntax:
ldr r0,[my_label]
.align 4
my_label: .word 0
Note that my_label needs to be word aligned. ldrh cannot access the PC register in Thumb mode.
Thanks a lot.
Hi, I've 2 questions regarding some features that arm-none-eabi-as allow me to use that i couldn't find any equivalent for arm-ips. With arm-none-eabi-as it's possible to do something like:
But armips give me an error: THUMB parameter failure I couldn't find how to do the same with armips, other than doing this:
But in some case I would prefer to use label instead, is there any way to do so?
I also can't load half-word using that way: ldrh r0, =0xABCD, and i don't get why.