Code: Select all
zcc +ti8x -startup=10 pR.c -o pR.bin -create-app
Code: Select all
main()
{
}
Code: Select all
main()
{
return 0;
}
In the mean time I was thinking of moving back to assembly, mainly due to the libraries I was wishing to use (usb8x). Any way to get them to work with z88dk compiled code?
EDIT: z88dk is the only compiler I have found. All of the myriad assemblers I've tried have failed to produce a working program. WTF?
EDIT: Just to make sure I wasn't completely insane I assembled a few simple programs by hand. They all worked. For some reason the output of zcc/z80asm and appmake do not.
EDIT: I figured out z80asm wasn't inserting the value of a label properly. I fixed this by referencing the label like "$lbl". However, the program does still not run properly (trying to print "Hello, world!").