> > 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 AS supports it, but if I'm not
> wrong, Maarten some time a
On 8/30/11 20:57, "Borut Razem" 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 explain
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:
Hi,
what about using movf with inline assembly?
Sebastien
Le 30/08/2011 00:51, Mario a écrit :
> Hello, its me ...once again.
>
> I have tried to do the following.
>
> #define SOMEASMHERE __asm\
> ASM INSTRUCTION\
> OTHER ONE\
> ETC\
> __endasm;
>
> where “ASM INSTRUCTION”, “OTHE
I'm no expert on this (in line assembly) but assembler in general is
line based where as a C #define is all one line, so I would not expect
the multiline assembler code work at all. The line continuation character
'\' is removed by the pre-processor and the compiler only sees a single
line,
and all
Even more strange. :/ Compiler won’t complain at all, but only the
first one works.
I never saw in the manual that semicolons were used for inline
assembler code, but it does not fail also.
lol
On Mon, Aug 29, 2011 at 8:40 PM, Zafi Ramarosandratana
wrote:
> How about:
>
> #define SOMEASMHERE __as
How about:
#define SOMEASMHERE __asm\
ASM INSTRUCTION; \
OTHER ONE; \
ETC; \
__endasm;
Regards,
Zafi.
On Tue, Aug 30, 2011 at 12:51 AM, Mario wrote:
> Hello, its me ...once again.
>
> I have tried to do the following.
>
> #define SOMEASMHERE __asm\
> ASM INSTRUCTION\
> OTHER O