Hi,

> Compiles to assembler as:
> ; ; ***    genInline  6286
>     MOVFF WREG, PREINC1 MOVFF STATUS, PREINC1 MOVFF INTCON, WREG IORLW
> 0x80 MOVFF WREG, PREINC1
>
> How do you create newlines in a defined bit of asm

You don't: Just use multiple __asm ... __endasm; clauses, as in

#define WHATEVER                               \
        __asm MOVFF WREG, PREINC1 __endasm;    \
        __asm MOVFF STATUS, PREINC1 __endasm;  \
        __asm MOVFF INTCON, WREG __endasm;

For simplicity, you could use

#define ASM(INSN)       __asm INSN __endasm
#define WHATEVER                      \
        ASM(MOVFF WREG, PREINC1);     \
        ASM(MOVFF STATUS, PREINC1); ASM(MOVFF INTCON, WREG);

I hope that helps,

Raphael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to