Reshaped doc's
[fw/sdcc] / doc / sdccman.html / node57.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
3 <!--Converted with LaTeX2HTML 99.1 release (March 30, 1999)
4 original version by:  Nikos Drakos, CBLU, University of Leeds
5 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
6 * with significant contributions from:
7   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8 <HTML>
9 <HEAD>
10 <TITLE>8.1 The Z80 and gbz80 port</TITLE>
11 <META NAME="description" CONTENT="8.1 The Z80 and gbz80 port">
12 <META NAME="keywords" CONTENT="sdccman">
13 <META NAME="resource-type" CONTENT="document">
14 <META NAME="distribution" CONTENT="global">
15
16 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17 <META NAME="Generator" CONTENT="LaTeX2HTML v99.1 release">
18 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
20 <LINK REL="STYLESHEET" HREF="sdccman.css">
21
22 <LINK REL="previous" HREF="node56.html">
23 <LINK REL="up" HREF="node56.html">
24 <LINK REL="next" HREF="node58.html">
25 </HEAD>
26
27 <BODY >
28 <!--Navigation Panel-->
29 <A NAME="tex2html1139"
30  HREF="node58.html">
31 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
32 <A NAME="tex2html1133"
33  HREF="node56.html">
34 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
35 <A NAME="tex2html1129"
36  HREF="node56.html">
37 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> 
38 <A NAME="tex2html1135"
39  HREF="node1.html">
40 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A> 
41 <A NAME="tex2html1137"
42  HREF="node61.html">
43 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A> 
44 <BR>
45 <B> Next:</B> <A NAME="tex2html1140"
46  HREF="node58.html">9. Support</A>
47 <B> Up:</B> <A NAME="tex2html1134"
48  HREF="node56.html">8. Other Processors</A>
49 <B> Previous:</B> <A NAME="tex2html1130"
50  HREF="node56.html">8. Other Processors</A>
51  &nbsp <B>  <A NAME="tex2html1136"
52  HREF="node1.html">Contents</A></B> 
53  &nbsp <B>  <A NAME="tex2html1138"
54  HREF="node61.html">Index</A></B> 
55 <BR>
56 <BR>
57 <!--End of Navigation Panel-->
58
59 <H2><A NAME="SECTION00091000000000000000">
60 8.1 The Z80 and gbz80 port</A>
61 </H2>
62
63 <P>
64 SDCC can target both the Zilog Z80 and the Nintendo Gameboy's Z80-like
65 gbz80. The port is incomplete - long support is incomplete (mul, div
66 and mod are unimplimented), and both float and bitfield support is
67 missing. Apart from that the code generated is correct.
68
69 <P>
70 As always, the code is the authoritave reference - see z80/ralloc.c
71 and z80/gen.c. The stack frame is similar to that generated by the
72 IAR Z80 compiler. IX is used as the base pointer, HL is used as a
73 temporary register, and BC and DE are available for holding varibles.
74 IY is currently unusued. Return values are stored in HL. One bad side
75 effect of using IX as the base pointer is that a functions stack frame
76 is limited to 127 bytes - this will be fixed in a later version.
77
78 <P>
79 <BR><HR>
80 <ADDRESS>
81 <I>Johan Knol</I>
82 <BR><I>2001-07-13</I>
83 </ADDRESS>
84 </BODY>
85 </HTML>