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

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

[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