Posted: Mon 31 Dec, 2007 3:11 am
Simplest way to get it working is to extract the z88dk to some directory, then navigate to the bin sub directory and create a file called 'hello.c' which would contain:
Save it and you would compile it from the command line like this:
Then you would use a program like 'devpac8x.com' to link it:
You should now have an 83+/84+ Ion compatible program that will display 'Hello World!', wait for a keypress and then exit.
Setting up your environment vars properly would make things easier of course.
Code: Select all
#pragma string name Hello World
#pragma data icon 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00;
#include <stdio.h>
main() {
// print string
printf("Hello World!");
// wait for keypress
while( getk() == 0 ) {
}
}
Code: Select all
zcc +ti8xansi -startup=1 -o hello.bin hello.c
Code: Select all
devpac8x hello
Setting up your environment vars properly would make things easier of course.