I'm trying to run a simple hello world, but I'm having some troubles.
First of all, everything is done in Linux. I've setup z88dk and it seems to work (i.e. produces binaries). I've taken the simple hello world app, and compiled it with:
Code: Select all
zcc +cpc -lndos -create-app hello.c
I then created an empty dsk with dskform (part of dsklib):
Code: Select all
dskform -format cpcsys test.dsk
Code: Select all
cpcfs test.dsk p 0:A.CPC
I then tried running it with:
Code: Select all
memory &5fff
load "a.cpc",&6000
call &6000
The code is:
Code: Select all
#include <stdio.h>
main()
{
printf("%cHello world!\n",12);
}
I'm thinking it might be something with regards to transfering the .cpc to dsk, but I'm not sure what's wrong.
Any help would be greatly appreciated,
thanks!