Hi Bernard,

I assume you are talking about manipulating the status register on the
stack within an interrupt handler. (as I can't think of any other
situation where you would ;-)

The macros _BIC_SR_IRQ(x) and _BIS_SR_IRQ(x) defined in iomacros.h do
this.

They generate a "warning: concatenation of string literals with
__FUNCTION__ is deprecated" which we just ignore as there is no
alternative at the moment. (Right guys?)

There have been other discussions about these macros in the past so feel
free to search the list for more info. One such discussion is entitled
"Is there a BIC_SR_IRQ in the house?".

Regards,
Luke

-----Original Message-----
From: Bernard Mentink [mailto:[email protected]] 
Sent: Tuesday, 5 August 2003 10:03 AM
To: [email protected]
Subject: [Mspgcc-users] compiler functions to access Status Register

Hi All,

Are there any GCC compiler intrinsic functions to access the Status 
Register on the stack as per
the IAR functions that do same?

Many Thanks,
Bernard mentink



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

--
This email is confidential and intended solely for the use of the individual to 
whom it is addressed.  Any views or opinions presented are solely those of the 
author and do not necessarily represent those of Nautronix Ltd.

If you are not the intended recipient, you have received this email in error 
and use, dissemination, forwarding, printing, or copying of this email is 
strictly prohibited.  If you have received this email in error please contact 
the sender.

Although our computer systems use active virus protection software, and we take 
various measures to reduce the risk of viruses being transmitted in e-mail 
messages and attachments sent from this company, we cannot guarantee that such
e-mail messages and attachments are free from viruses on receipt.  It is a 
condition of our using e-mail to correspond with you, that any and all 
liability on our part arising directly or indirectly out of any virus is 
excluded.
Please ensure that you run virus checking software on all e-mail messages and 
attachments before reading them.

Reply via email to