This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: assembly macro syntax...
- From: "Dylan Cuthbert" <dylan at q-games dot com>
- To: "Noonan, Michael E \(Michael\)" <mnoonan1 at lucent dot com>,<help-gcc at gnu dot org>
- Date: Tue, 19 Feb 2002 10:58:49 +0900
- Subject: Re: assembly macro syntax...
- References: <A1F1AD611488D411886400508B69AD5A01C33DDF@MA8132EXCH001U>
check out my page which some info and links on it regarding gcc's asm
statement- http://www.geocities.com/dylan_cuthbert.html
Regards
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
----- Original Message -----
From: "Noonan, Michael E (Michael)" <mnoonan1@lucent.com>
To: "Noonan, Michael E (Michael)" <mnoonan1@lucent.com>; <help-gcc@gnu.org>
Sent: Tuesday, February 19, 2002 1:51 AM
Subject: RE: assembly macro syntax...
>
> > I have a simple question for anyone who knows how to write assembly
macros
> > for the GNU compiler. I am trying to port macros that target the Diab
> > compiler for PPC and am having a hell of a time figuring out the correct
> > syntax. The macros are used to test the PPC exception handler by
forcing
> > the respective exceptions. Here are a couple of the Diab format
assembly
> > macros for reference...
> >
> > VOID excpTestPage (ULONG input)
> > {
> > asm (" lwz r4,0(r3)");
> > }
> >
> > VOID excpTestIsi (VOID)
> > {
> > asm (" .long 0x4BC00001"); // branch to 0x0F00_0000 + ip
> > }
> >
> > VOID excpTestTrap (ULONG input)
> > {
> > asm (" twgti r3,5"); // trap if input is greater than 5
> > }
> >
> > I have scoured the GCC manual and cannot figure it out from the given
> > info.
> >
> > Any help is greatly appreciated. Thanks, Mike