Sorry, there isn't a way to include pure asm blocks inside CodeWarrior, at 
least not for Palm. Currently only function-level assembly is supported. 
That would be:

asm void foo ()
{
         add.l d0, d1
         rts
}

This is described in the Targeting Palm OS documentation. The rest of the 
assembly syntax would be inside the Motorola 68000 documentation.

P.S. Are you using CW Pro, or CW for Palm? There should be no documentation 
on x86 assembly with CW for Palm.

Rgds,
Jun-Kiat Lam
Metrowerks Technical Support

At 09:02 PM 8/7/2000 -0400, DIAMOND JEFF wrote:
>I have read through the Metrowerks documentation, and although there is
>much about pure assembler syntax (generically), and the disassembler in
>Metrowerks demonstrates much in the way of 68K assembly syntax.
>
>But the one piece of information I haven't found or figured out is the
>syntax for actually inserting assembly into your C code, i.e., use of
>asm.
>
>Can anyone give me examples or references of this?
>
>Also, does Metrowerks allow the use of C symbols, such as:
>
>short sNumRecords = 26;
>...
>asm {
>   mov sNumRecords, d7;
>   lea &sNumRecords, a3;
>...
>         }
>
>Finally, because I haven't come up with an assembler example yet, what
>is the metrowerks syntax for creating a register list for the movem
>command?
>
>(I'm using Metrowerks on Windows, and so the documentation shows only
>Intel X86 assembly...)
>
>Thanks!
>- Jeff
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, 
>please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to