Re: [Sdcc-user] z80 startup code question

2007-10-19 Thread Maarten Brock
Hello Taco, See the answers below. > I've used the standard crt0.s as startup but when the call to GSINIT is made > the program doesn't work. All code should start from an embedded rom memory > located at 0x to 0x2000 address space. And I make the file with > > $(PROGRAM).ihx : $(PROGRAM).

[Sdcc-user] z80 startup code question

2007-10-18 Thread Taco Walstra
Hi, I'm using the sdcc compiler for a z80 embedded fpga core. I don't understand a few things on the mapping in the crt0.s and perhaps somebody can give an explanation. The C program is right now super simple: sfr at 0x80 led_port; int main(){ led_port = 0x33; return 0; } I've u