Thanks all of you for the reply.
Unfortunately the code with the defines is Free Rtos, which I am trying
to stuff through sdcc for the PIC. I'm not sure I can convince them to
do this. I sort of thought there was some attempt to be MPLAB C18
compatible. Yes/No?
Raphael Neider wrote:
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user
|
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user