I am new to ARM programming. I have encounter an instruction:
MSR CPSR_cxsf, r0
would anybody pls help to explain what does the "_cxsf" means ?
I am encountering a linking problem like:
"relocation truncated to fit : R_ARM_PC24"
I am just wondering if they are related. Thanks!
Thomas
The CPSR is composed of four fields (c, x, s and f). You can move the
relevant contents of r0 into the F field ("flags") by using CPSR_f.
In effect, the suffix _[c][x][s][f] enables you to "mask out" those
fields which you don't want to affect.
I don't think your linkage problem has anything to do with that.
-- Nitzan
> MSR CPSR_cxsf, r0
> Thomas
Thanks for your tips! I figured that out. I have put my assembly code
within crt0.s and the lnkscript put my code together with the
interrupt vector tables which is far far away from the address of my
main c code located. Thanks!
Thomas