Re: [Sdcc-user] #define concat function ##

2010-03-21 Thread fapin...@gmail.com
Hello Raphael, You are abolutely right. Moreover I changed the code too. I think you helped me a lot by solving my problem. Thanks again. I have never worked before with multiple files and I feel I am coming short on this. So let met fight for a few days. If I think I have done enough I will s

Re: [Sdcc-user] #define concat function ##

2010-03-20 Thread Raphael Neider
Hi Frans, > Ok, did the splitting in two .c files, solved my previous bit addressing > stuff. > Build the lot, got one .lst and .hex file with both my main and the > functions from the other .c > But the main is empty, i.e there is no CALL > > What did I left out? done wrong, forgot to do..

Re: [Sdcc-user] #define concat function ##

2010-03-20 Thread fapin...@gmail.com
Hello Raphael, Thanks Raphael for the corrective maintenance on my code skills and knowledge. We had a power outage, luckily I was on a Tea break and had saved my work. Ok, did the splitting in two .c files, solved my previous bit addressing stuff. Build the lot, got one .lst and .hex file wi

Re: [Sdcc-user] #define concat function ##

2010-03-20 Thread Raphael Neider
Hi, > Ah, I was thinking a bit, hmm very dangerous, before sending this of... > my little section of code does not like this NO_BIT_DEFINES, but what to > do when other sections, the ones borrowed from somebody else, do like it? In that case, you put your code into one (or more) .c files and make

Re: [Sdcc-user] #define concat function ##

2010-03-20 Thread fapin...@gmail.com
Hello Raphael, Thanks, no mistake of SDCC then, just me not reading everything I use.Who does? :-) Thanks again for helping me out on this Now I have to change the way I address the bits but I thnik I can manage that. Ah, I was thinking a bit, hmm very dangerous, before sending this of... m

Re: [Sdcc-user] #define concat function ##

2010-03-20 Thread Raphael Neider
Hi, > On building the above code I get the error message > Undefined identifier 'TRISSSPSTAT_bits' You want to add #define NO_BIT_DEFINES 1 before including pic16f874.h -- otherwise D expands to SSPSTAT_bits.D. Alternatively, you can add -DNO_BIT_DEFINES=1 to the sdcc command line. Best regar

[Sdcc-user] #define concat function ##

2010-03-20 Thread fapin...@gmail.com
Hi All, I have a problem which I think is in SDCC I use the binary package SDCC version 'latest' downloadable from Sourceforge on Windows XP under Code::blocks version 8.02 I have Code::blocks setup for the PIC16F874. This is what I want to do, To synthesize PORT and TRIS from a sinlge letter