Is it possible to load the SPSR in the lpc2214.
For example:
mov r0, #0xD0 ;set previous mode to user
msr spsr_cxsf, r0
I do this at boot and then read and display CPSR & SPSR
CPSR = 0x000000D3
SPSR = 0x800000D3
George
On Thu, 2006-02-16 at 18:47 +0000, brendanmurphy37 wrote:
>
> The suffix to CPSR refers to which field(s) of the CPSR is
> rereferenced (you can specify one or more). Defined fields are:
>
> c - control
> f - flags
> s - status
> x - extension
>
> Thus., for example, you can update only those parts of the CPSR that
> are of interest. See a description of the CPSR for details.
>
> Brendan
>
> --- In lpc2000@yahoogroups.com, "George M. Gallant, Jr."
> <ggallant571@...> wrote:
> >
> > I notice in many assembly language examples the use of CPSR_c
> > & CPSR_cxsf but donot understand the differences.
> >
> > Thanks,
> > George
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
>
>
>
> SPONSORED LINKS
>
> Microcontrollers
> Microprocessor
> Intel microprocessors
> Pic microcontrollers
>
>
>
> ______________________________________________________________________
> YAHOO! GROUPS LINKS
>
>
> 1. Visit your group "lpc2000" on the web.
>
> 2. To unsubscribe from this group, send an email to:
> lpc2000-unsubscribe@yahoogroups.com
>
> 3. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
>
> ______________________________________________________________________
>
>
[Non-text portions of this message have been removed]Message
Re: [lpc2000] Re: CRSR_c
2006-02-17 by George M. Gallant, Jr.
Attachments
- No local attachments were found for this message.