Changes

Jump to: navigation, search

Z88DK

931 bytes added, 19:16, 25 October 2012
/* Released Software */
Warning : you would really install a recent version like the nightly build to enjoy of the last improvement for CPC.
[[Image:Chessboard.png|300px|thumb|right|Chessboard using z88dk graphics library]] 
== Supported Targets ==
Binary releases are available for Amiga, Solaris and Win32. Win16/MSDOS needs to be rolled by the user. On BSD machines, GNU make should be used instead of the native make program.
== usage Usage ==
Here is world.c from the z88dk console examples :
<pre>
</pre>
another Compile this example with: zcc +cpc -create-app -make-app -O3 -unsigned -o out.bin world.c -lndos -zorg=16384 If you get an error message during compilation ("File open/read error"), make sure the <tt>Z80_OZFILES</tt> environment variable is set correctly, see [http://www.z88dk.org/wiki/doku.php?id=installation#z80_ozfiles]. [[File:Z88dk hw.png|thumb|256px|''Hello world'' example]] The resulting binary can be run from BASIC with:  memory &3fff load "out.cpc",&4000 call &4000 Another more specific example :
<pre>
}
</pre>
 
graphics library examples : [[Image:Moivre.png|300px|thumb|right]]
 
<pre>
#include <graphics.h>
 
main()
{
int i,x1,y1,x2,y2;
clg();
 
for ( i=0;i<11;i++)
{
y1 = 200 - 20 * i ;
x2 = 50 + 20 * i ;
draw(50,y1,x2,0);
}
}
</pre>
 
 
must-read topic on z88dk wiki :
* [http://www.z88dk.org/wiki/doku.php?id=platform:amstradcpc Amstrad CPC]
* [http://www.z88dk.org/wiki/doku.php?id=usage:stackframe stackframe]
== Libraries for the CPC ==
*[[CPCRSlib]]
* Crocolib by Arnaudstorq (no link deadexists anymore)
== Released Software ==
* [[Nanako Descends To Hell]] (game)
* [[Platformer Medley Block #1]] (game)
* [[Phantomas Saga #1: Infinity]] (game)
== Weblinks ==
* [http://z88dk.sourceforge.net/platforms.html Machine support page]
* [http://z88dk.sourceforge.net/screenshots.html Screenshots on different machines]
* [http://www.octoate.de/joomlawp/articles/german/entwickeln-mit-z88dk/index.php?option=com_content&task=view&id=17&Itemid=36 Tutorial on how to develop with Z88dk for the CPC (German)] ( dead link in German)
* [http://espsoft.amstrad.es/?page_id=257 CPC Sprite library for z88dk]
[[Category:C]][[Category:Programming_software]][[Category:CrossDev]]
35
edits