Re: [Sdcc-user] help using z80 port

2008-12-27 Thread candido lopez rodriguez
On Saturday 27 December 2008 03:24:08 pm Richard Gray wrote: > >From memory, I think the Z80's SP=0 at reset, so the chances are that > > initialising of this register is something you're going to want to do > fairly early on in your code. > > There are a couple of ways at least of doing this, but

Re: [Sdcc-user] help using z80 port

2008-12-27 Thread bobrob
> $TOOL_BASE/sdcc --xram-loc 0x1F40 --code-loc 0 --stack-loc > 0x3e80 /home/crodrigu/projects/debugger/debugger.rel > /home/crodrigu/projects/debugger/uart.rel > /home/crodrigu/projects/debugger/CTC.rel You need -mz80 in your link command line. I think SDCC might default to using the 8051 lin

Re: [Sdcc-user] help using z80 port

2008-12-27 Thread Richard Gray
>From memory, I think the Z80's SP=0 at reset, so the chances are that initialising of this register is something you're going to want to do fairly early on in your code. There are a couple of ways at least of doing this, but I use my own crt0.s file and the --no-std-crt0 compiler switch. The o

[Sdcc-user] Anyone using strlen(), strnlen(), strchr() or memchr() in the Z80 port?

2008-12-27 Thread Philipp Klaus Krause
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you using one of the above functions in the Z80 port? If you're using strlen(), could you use strnlen() instead? If you're using strchr(), could you use memchr() instead? The Z80 has some instructions that can do relatively complex stuff. Using t

Re: [Sdcc-user] help using z80 port

2008-12-27 Thread Philipp Klaus Krause
candido lopez rodriguez schrieb: > Hello: > > Thanks for your help, This is the first time that I am using SDCC and I am > having a couple of issues. (hope that this email is not too long) > > > 1) The generated output ends in *.o, when I try to pass the objects to the > linker it says that th

Re: [Sdcc-user] Problem compiling device libraries for PIC16 on MacOS, help required?

2008-12-27 Thread Kustaa Nyholm
Ah, thanks, that (having gpasm on the path) solved the problem. My actual problem was of course that I had not installed gputils in the first place, must have been mentioned as requirement somewhere but did not spot it. Thanks again. br Kusti >>> rnei...@web.de 27.12.2008 0:01 >>> > when

[Sdcc-user] help using z80 port

2008-12-27 Thread candido lopez rodriguez
Hello: Thanks for your help, This is the first time that I am using SDCC and I am having a couple of issues. (hope that this email is not too long) 1) The generated output ends in *.o, when I try to pass the objects to the linker it says that the type *.o is unknown, if I change the extension