[Sdcc-user] Absolute addressing

2011-08-28 Thread Mario
I have been working for a while on porting my works for CC5X compiler to SDCC. But I have found a number of problems that I just cannot manage to resolve and I think the manual lacks a lot of clear information on how to do some things. In this one I want to ask about the Absolute Addressing featur

Re: [Sdcc-user] Absolute addressing

2011-08-29 Thread Mario
s in code memory but I find no way how to do it. I tried also to create a *var = "with-text", with its data located in RAM memory, but no luck, it is always stored somehow at code memory. On Mon, Aug 29, 2011 at 3:10 AM, Kustaa Nyholm wrote: > On 8/29/11 00:00, "Mario" wrot

[Sdcc-user] BCF STATUS,RP0, BCF STATUS,RP1

2011-08-29 Thread Mario
I have an issue which is recurrent, happens in all my programs compiled with SDCC. Maybe all of you have experienced this also, there are tons of BCF STATUS,RP0 BCF STATUS,RP1 And such repeating over and over after most of the operations between the W register and some RAM (memory) one. Is

[Sdcc-user] W and PC Registers

2011-08-29 Thread Mario
When I try to assign a value to the W register, SDCC‘s compiler complains that it is a read only register. But I used to assign values to that one in other compilers. Is there some way to make it writable? I need it for some of my programs to correctly work. If there is not, it would be good to be

[Sdcc-user] Inline Assembler from a Macro

2011-08-29 Thread Mario
Hello, its me ...once again. I have tried to do the following. #define SOMEASMHERE __asm\ ASM INSTRUCTION\ OTHER ONE\ ETC\ __endasm; where “ASM INSTRUCTION”, “OTHER ONE”, “ETC”, are ...assembler instructions. SDCC does not complain at all but I get error code 256. from gpasm. Th

Re: [Sdcc-user] Inline Assembler from a Macro

2011-08-29 Thread Mario
MEASMHERE __asm\ >   ASM INSTRUCTION; \ >   OTHER ONE; \ >   ETC; \ >   __endasm; > > Regards, > Zafi. > > On Tue, Aug 30, 2011 at 12:51 AM, Mario wrote: >> Hello, its me ...once again. >> >> I have tried to do the following. >> >> #define SO

Re: [Sdcc-user] Absolute addressing

2011-08-29 Thread Mario
Zafi. > > On Tue, Aug 30, 2011 at 12:23 AM, Mario wrote: >> Just as described at section 3.6. >> I have managed to make it work partially, for example, I can decide >> the address in the RAM of variables only when they are globally >> defined. But I had to find out

Re: [Sdcc-user] BCF STATUS,RP0, BCF STATUS,RP1

2011-08-31 Thread Mario
Nobody?? On Mon, Aug 29, 2011 at 7:35 PM, Mario wrote: > I have an issue which is recurrent, happens in all my programs > compiled with SDCC. > Maybe all of you have experienced this also, there are tons of >    BCF STATUS,RP0 >    BCF STATUS,RP1 > And such repeating over and

Re: [Sdcc-user] Absolute addressing

2011-09-09 Thread Mario
On Tue, 30 Aug 2011 12:07:29 +0300 Kustaa Nyholm wrote: > On 8/30/11 01:23, "Mario" wrote: > > >Just as described at section 3.6. > >I have managed to make it work partially, for example, I can decide > >the address in the RAM of variables only when they are g