> This is actually one of the reasons why I am not using the keil
>compiler
This looks very close to what you are trying to do:
http://www.keil.com/support/docs/2990.htm
--- In lpc2000@yahoogroups.com, Richard Duits <yahoo@r...> wrote:
> This is actually one of the reasons why I am not using the keil
compiler
> (yet?). The inline assembler is not as flexible as the gnu compiler. If
> someone has a good solution for these functions in the keil compiler I
> am also very interested.
>
> Richard.
>
>
>
> javida13 wrote:
>
> > The following code came from the download area, UT050418A, by Bill
> > Knigh. Currently, I'm looking at the Keil Tools and the two
> > functions below will not compile. If someone could help, I would
> > appreciate it.
> >
> >
> > static inline unsigned __get_cpsr(void)
> > {
> > unsigned long retval;
> > asm volatile (" mrs %0, cpsr" : "=r" (retval) : /* no inputs*/ );
> > return retval;
> > }
> >
> > static inline void __set_cpsr(unsigned val)
> > {
> > asm volatile (" msr cpsr, %0" : /* no outputs */ : "r" (val) );
> > }
> >
> >
> >
> >
> >
------------------------------------------------------------------------
> > *Yahoo! Groups Links*
> >
> > * To visit your group on the web, go to:
> > http://groups.yahoo.com/group/lpc2000/
> >
> > * To unsubscribe from this group, send an email to:
> > lpc2000-unsubscribe@yahoogroups.com
> > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >Message
Re: Porting inline assembly gnu function to keil
2005-04-28 by berniespam
Attachments
- No local attachments were found for this message.