Re: [Sdcc-user] Z180 sample project

2013-03-29 Thread Philipp Klaus Krause
On 28.03.2013 23:42, Masur Jonathan wrote: > Ok, > therefore using automatic bankswitching should be done with caution, as > it could potentially result in a ridiculous number of unnecessary BBR > writes - say if I access a lot of variables in bankswitched area and > call functions that doesn't

Re: [Sdcc-user] Z180 sample project

2013-03-28 Thread Masur Jonathan
Ok, therefore using automatic bankswitching should be done with caution, as it could potentially result in a ridiculous number of unnecessary BBR writes - say if I access a lot of variables in bankswitched area and call functions that doesn't touch BBR. For interrupts yeah it makes complete sen

Re: [Sdcc-user] Z180 sample project

2013-03-27 Thread Philipp Klaus Krause
On 27.03.2013 22:28, Masur Jonathan wrote: > Hello, > it really sounds incredible SDCC can do this automatically ! > What if you call a function that itself call a function that will affect > the bank switching ? Can SDCC detect such cases and do all the > bank-switching automatically ? Well, sd

Re: [Sdcc-user] Z180 sample project

2013-03-27 Thread Philipp Klaus Krause
On 27.03.2013 22:28, Masur Jonathan wrote: > Hello, > it really sounds incredible SDCC can do this automatically ! > What if you call a function that itself call a function that will affect > the bank switching ? Can SDCC detect such cases and do all the > bank-switching automatically ? Well, sd

Re: [Sdcc-user] Z180 sample project

2013-03-27 Thread Masur Jonathan
Hello, it really sounds incredible SDCC can do this automatically ! What if you call a function that itself call a function that will affect the bank switching ? Can SDCC detect such cases and do all the bank-switching automatically ? This really sounds incredible. If SDCC can do all this, it's o

Re: [Sdcc-user] Z180 sample project

2013-03-24 Thread Philipp Klaus Krause
On 21.03.2013 10:27, Hynek Sladky wrote: > So the last question still remains: is there any example how to write > application for SDCC/Z180 which uses memory banking for code and/or data? I don't have a Z180, so I didn't test. The attached example is a simple one for memory banking in the Z180 f

Re: [Sdcc-user] Z180 sample project

2013-03-22 Thread Philipp Klaus Krause
On 21.03.2013 10:27, Hynek Sladky wrote: > Thanks for Your reply. > > after some more time of testing I got finally correct result. There was > missing option for linker, so Z80 objects were linked as if they were > for i51. It is probably also the cause for not linking crt0 and offset > 0x0020 in

Re: [Sdcc-user] Z180 sample project

2013-03-21 Thread Hynek Sladky
Thanks for Your reply. after some more time of testing I got finally correct result. There was missing option for linker, so Z80 objects were linked as if they were for i51. It is probably also the cause for not linking crt0 and offset 0x0020 in IHX output (it was really 0x0020, not 0x0200; se

Re: [Sdcc-user] Z180 sample project

2013-03-20 Thread Philipp Klaus Krause
On 19.03.2013 13:48, Hynek Sladky wrote: > Hello, > > I want to start project with Z180 but I can't find some answers: Here's a quick introduction to the Z180 port. When Lee proposed to make a Rabbit port, I had not created any any sdcc port before; so I thought doing a Z180 port first would be a

[Sdcc-user] Z180 sample project

2013-03-19 Thread Hynek Sladky
Hello, I want to start project with Z180 but I can't find some answers: - I get "ASlink-Warning-No definition of area HOME" but I don't know why - the code in .IHX file is placed at address 0x0020 (not 0x) - there is not default crt0 linked (i.e. SP setup etc.) - how to write bigger applicat