Re: [Sdcc-user] C-Preprocessor breaks assembly code

2011-02-15 Thread Borut Razem
#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,

Re: [Sdcc-user] C-Preprocessor breaks assembly code

2011-02-15 Thread Raphael Neider
Hi, > 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? For guys like you I introduced #define NO_BIT_DEFINES 1 #include "pic16f690.h" or sdcc -DNO_BIT_

Re: [Sdcc-user] C-Preprocessor breaks assembly code

2011-02-15 Thread Kustaa Nyholm
On 2/15/11 19:07, "Samuel Leathers" wrote: > >Note: If I remove line 465 of the header file, it works: >//#define GO ADCON0_bits.GO > Would #undef GO work? br Kusti -- The ultimate all-in-one perfo

[Sdcc-user] C-Preprocessor breaks assembly code

2011-02-15 Thread Samuel Leathers
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