--- Alan Carvalho de Assis <[EMAIL PROTECTED]> escribió:

> Hi,
> I verify that SDCC can't compile macros if it have more than one
> assembly line wrapped by _asm/_endasm.
> 
> In example:
> 
> #define SAVE_TASK_CTX(stack_low, stack_high)                           \
> 
> {                                                                      \
> 
>     /* Disable global interrupt. */                                    \
> 
>       _asm                                                               \
> 
>         bcf     INTCON, 6, 0                                           \
> 
>         movff   STATUS, PREINC1                                        \
> 
>         movff   WREG, PREINC1                                          \
> 
>       _endasm                                                            \
> 
>     /* Store the necessary registers to the stack. */                  \
>         ...
> }

Have you noticed that the _endasm avobe has not ';'. Can you verify that is 
that way in your code?



       
______________________________________________ 
Pregunta, Responde, Descubre. 
Comparte tus consejos y opiniones con los usuarios de Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to