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 good exercise. Also, I wanted to
know, how minor instruction set differences would affect the quality of
the generated code. So the Z180 port was created, with me doing the work
on the compiler, and Lee doing the work on the simulator.

For sdcc users this means: The current z180 port behaves as the z80
port, except for some differences in the generated code (it turned out
that mlt makes for most of the differerence; the impact of tst and the
instruction timings is rather minor).

> - I get "ASlink-Warning-No definition of area HOME" but I don't know why

I just compiled a trivial example:

void main(void)
{
}

with sdcc 3.2.1 #8452 on Debian GNU/Linux. I do not see this issue. I
guess this is caused by your crt0 issue.

> - the code in .IHX file is placed at address 0x0020 (not 0x0000)

At address 0x0200. The only reason being that that was the default for
the z80 port. You can change this using --code-loc.

> - there is not default crt0 linked (i.e. SP setup etc.)

Again, I do not see this issue.

> - how to write bigger application using more than 64K memory?

Depends on what you want to use it for. For functions, you'll have to
roll your own solution for now, as the support in sdcc is AFAIK
incomplete (again the same situation as in the z80 port). For variables,
you can use named address spaces.

Philipp

------------------------------------------------------------------------------
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