Hi Mukund,

2007/11/7, Mukund Deshmukh <[EMAIL PROTECTED]>:
> I have whole lot of code for ADC and soft serial port between _asm and
> _endasm;
> I never faced problem.
> I am using old version of SDCC.
>

Hmm, are you defining MACROS using multiple assembly lines?

Try it:

#define CLI  \
{                                                                      \
    /* Disable global interrupt. */                                    \
        _asm                                                               \
        bcf     INTCON, 6, 0                                           \
        movff   STATUS, PREINC1                                        \
        movff   WREG, PREINC1                                          \
        _endasm;                 \
}

Anyway Frieder show me an elegant way to solve this problem.

> Warm Regards,
>
> Mukund Deshmukh,
> Beta Computronics Pvt Ltd.
> 10/1 IT Park, Parsodi,
> Nagpur -440022 India.
> Web site - http://betacomp.com
>
>

Cheers,

Alan

-------------------------------------------------------------------------
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