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; see IHX contents in my previous mail) I wonder why there is no warning/error: REL files contain target definition so I would expect it will warn me that I am linking wrong object files...

I understand that I have to set bank registers manually but I have no idea how to write application which will generate code and/or access variables in another banks of memory. I used C compiler from Z-world company many years ago and memory banking was managed automatically; I expected that it could work here as well (just to set memory bank sizes and the rest is compiler's interest). 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?

Thanks.
Hynek

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to