-
After some further investigation I discovered that your version actually works with both --std-sdcc99 and --std-c99 if you use single underscored _asm _endasm instead of double underscored __asm __endasm. This is a consequence of a bug in sdcpp, which recognises _asm but it doesn't recognise __asm.
The #pragma preproc_asm support of multiline assembly is just a side effect of how sdcpp...
2010-01-03 22:27:59 UTC in Small Device C Compiler
-
Your version doesn't work -std-sdcc99 nor with --std-c99 and the #pragma preproc_asm doesn't change anything.
The proper solution for your problem is:
#define ThreeNops __asm \
NOP \
__endasm; \
__asm \
NOP \
__endasm; \
__asm \
NOP \
__endasm
or
#define Nop __asm NOP __endasm
#define ThreeNops Nop; Nop; Nop
The example for #pragma preproc_asm in the sdccman is wrong...
2010-01-03 20:58:07 UTC in Small Device C Compiler
-
That is because the current sdasz80 version doesn't support -o option. This is due the unification with sdas for other targets and with asxxxx. Only as-z80 and as-gbz80 supported the -o option, asx8051 and as-hc80 did not.
This is not documented yet, since is not yet decided if it will remain for the next sdcc release...
I'm leaving this bug open until it is decided how will it be in the...
2010-01-03 20:20:38 UTC in Small Device C Compiler
-
borutr committed revision 5614 to the Small Device C Compiler SVN repository, changing 4 files.
2009-12-31 16:20:31 UTC in Small Device C Compiler
-
borutr committed revision 5613 to the Small Device C Compiler SVN repository, changing 13 files.
2009-12-31 13:12:25 UTC in Small Device C Compiler
-
The initiative to change the sdcc library license in the way that it can be used in "closed source" projects has been started long time ago. I asked the authors if they agree with the license change and which license they prefer, but only few answered. You can see results on sddc wiki pages:
http://sourceforge.net/apps/trac/sdcc/wiki/SDCC%20Library%20Licenses and...
2009-12-30 20:57:52 UTC in Small Device C Compiler
-
borutr committed revision 5612 to the Small Device C Compiler SVN repository, changing 2 files.
2009-12-29 17:20:32 UTC in Small Device C Compiler
-
borutr committed revision 5608 to the Small Device C Compiler SVN repository, changing 3 files.
2009-12-21 22:10:14 UTC in Small Device C Compiler
-
borutr committed revision 5607 to the Small Device C Compiler SVN repository, changing 2 files.
2009-12-21 08:10:07 UTC in Small Device C Compiler
-
borutr committed revision 5606 to the Small Device C Compiler SVN repository, changing 6 files.
2009-12-20 21:33:28 UTC in Small Device C Compiler