#pragma preproc_asm -
disables preprocessing of the asm code.

Borut

On 02/15/2011 06:07 PM, Samuel Leathers wrote:
> I'm trying to embed some assembly code in my C code for a PIC 16F690.
> The problem is the header file for the 16F690 defines GO to be
> ADCON0_bits.GO. As such, when it compiles, it replaces my GO in the
> assembly code with ADCON0_bits.GO, which is not what I want.
>
> Here's a code snippet if it helps:
>           __asm
>               BSF ADCON0,GO
>               BTFSS ADCON0,GO
>               GOTO $-1
>               NOP
>           __endasm;
>
> My question is, is there anyway to tell the C pre-processor to not
> replace GO in the assembly section of the code? Or is there some kind of
> escape sequence I can use to keep the GO as is?
>
> Note: If I remove line 465 of the header file, it works:
> //#define GO                   ADCON0_bits.GO
>
> Sam


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to