Re: [Sdcc-user] Z80: function in RAM

2014-11-14 Thread Alan Cox
On Fri, 14 Nov 2014 10:33:26 +0100 Hynek Sladky wrote: > Thanks for Your reply. > I am not sure if I understand it correctly. When I need to compile > source, code should be in INITIALIZED section to get correct addresses; > INITIALIZER section will contain .ds with correct size just to make >

Re: [Sdcc-user] Z80: function in RAM

2014-11-14 Thread Hynek Sladky
Thanks for Your reply. I am not sure if I understand it correctly. When I need to compile source, code should be in INITIALIZED section to get correct addresses; INITIALIZER section will contain .ds with correct size just to make place for initialization data after special utility is executed -

Re: [Sdcc-user] Z80: function in RAM

2014-11-11 Thread Alan Cox
> BTW, it seems to me that there is some problem with crt0.s - I have to > have my own start-up routine so I used crt0.s as template. Unfortunately > it can't be compiled unless .globl is added for l__INITIALIZE* and > s__INITIALIZE* values. Does it work differently when using standard crt0.s?

[Sdcc-user] Z80: function in RAM

2014-11-10 Thread Hynek Sladky
Hello, I need to make function which must run in RAM (Flash programming in bootloader). So far I haven't found how to do it. Nor in C neither in assembler. What I have found is way how initialized variables are translated from C to assembly: the value is added to segment _INITIALIZER and spa