This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: assembly macro syntax...



sorry about that... remove the .html from the URL:

http://www.geocities.com/dylan_cuthbert

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com

----- Original Message -----
From: "Dylan Cuthbert" <dylan@q-games.com>
To: "Noonan, Michael E (Michael)" <mnoonan1@lucent.com>; <help-gcc@gnu.org>
Sent: Tuesday, February 19, 2002 10:58 AM
Subject: Re: assembly macro syntax...


> 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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]