Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what does cpsr_cxsf means ?

1,462 views
Skip to first unread message

Thomas Ng

unread,
Sep 12, 2002, 5:09:48 AM9/12/02
to
Hi,

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

Calius

unread,
Sep 12, 2002, 1:06:56 PM9/12/02
to
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

Thomas Ng

unread,
Sep 12, 2002, 9:40:30 PM9/12/02
to
Nitzan,

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

0 new messages