For inline assembly, the documentation is in pg. 109 of the Targeting Palm
OS.pdf file.
Hope this helps,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: Eric VERGNAUD <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 1999 9:16 AM
Subject: Re: Including pure assembly modules in CodeWarrior projects
> You can indeed. Ther are 2 ways to handle this issue:
> - you can integrate your object code files (.O files) in your project
just
> like libraries
> - you can include your code in your .c or .cpp files using the "asm"
> keyword. This makes it even more easy to use than using .asm files because
> your methods are seen as regulare C methods, and you can use the
paramaters
> in your assembly instructions.
>
> The syntax is simply (for example):
>
> asm void MyMethod()
> {
> // put your assembly code here
> }
>
>
>
> > De : [EMAIL PROTECTED] (Michael Sokolov)
> > R�pondre � : [EMAIL PROTECTED]
> > Date : Wed, 3 Nov 99 18:05:16 -0600
> > � : [EMAIL PROTECTED], [EMAIL PROTECTED]
> > Objet : Including pure assembly modules in CodeWarrior projects
> >
> > Hi,
> >
> > I wonder, how can I integrate pure handwritten 68K assembly into
projects done
> > with CodeWarrior for Palm OS? Our company uses CodeWarrior for Palm OS,
and we
> > need to integrate some pure assembly modules into our CodeWarrior C
projects.
> > We actually need whole pure assembly modules, the C function-level
inline
> > assembler is not enough. We have assembly-language source modules (.s or
.asm
> > files) that we need to integrate (link) into CodeWarrior C projects,
with C
> > modules and resources and all. I wonder, can this be done and how? Our
> > CodeWarrior documentation contains a manual titled "CodeWarrior
Assembler
> > Guide" that documents the Metrowerks assemblers for different
architectures,
> > including the 68K. This is exactly what we need. The fact that this
assembler
> > is documented in our CodeWarrior manuals made me assume that it is part
of
> > CodeWarrior. I assume that I should be able to include a .asm file in a
> > CodeWarrior C project, and CodeWarrior should recognize it as assembly,
> > assemble it, and link it with the C modules in the project. However, I
wasn't
> > able to do this. Could you tell me why? Is this Metrowerks 68K assembler
> > included as part of CodeWarrior or is it a product that must be
purchased
> > separately?
> >
> > --
> > Michael Sokolov 2695 VILLA CREEK DR STE 240
> > Software Engineer DALLAS TX 75234-7329 USA
> > JP Systems, Inc. Phone: +1-972-484-5432 x247
> > or +1-888-665-2460 x247
> > E-mail: [EMAIL PROTECTED] Fax: +1-972-484-4154
> >
>
>