On 8/30/11 20:57, "Borut Razem" <borut.ra...@gmail.com> wrote:

>On 08/30/2011 10:45 AM, Kustaa Nyholm wrote:
>> Maybe this should be explained in the SDCC manual although it really
>> should be obvious to anyone who is competent and courageous to enough
>> to try to inject assembly code inline.
>
>Actually it is explained in chapter 3.19 Pragmas, pragma preproc_asm:
>"To define multilines of assembly code you have to include each assembly
>line into it's own __asm __endasm block."
>In chapter 3.13.1 A Step by Step Introduction is also written: "It is
>recommended that each assembly instruction (including labels) be placed
>in a separate line (as the example shows).", although no related to
>macro expansion. But I definitely agree that the explanation is not
>clear enough and is not in the right place.
>
>> At the end of the day
>> the behavior depends on the assembler unless we want SDCC to
>> understand the asm syntax.
>
>Exactly. Some assemblers support multiple mnemonics in one line, others
>don't. I think that the original ASXXXX supports it, but if I'm not
>wrong, Maarten some time ago removed the support in sdasm.
>
>> Spelling all that out in the SDCC
>> manual would not hurt ...
>
>Be my guest: just send me the patch for sdccman.lyx ;-)

In a way I feel that the responsibility lies with the OP
since he was the one who complained ;-) but I might
send a patch. We will see.

br Kusti


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to