[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPM software



Cross-compiling C on unix with Z88DK works out of the box.

Given
#include <stdio.h>
main()
{
        int zappa;
        bdos(9, "Hello, world!\r\n$");
        printf("stack at 0x%x\n", &zappa);
        zappa = getchar();
        printf("got 0x%x\n", zappa);
}
and commanding
$ zcc +cpm c.c
produced A.COM (not c.com ???) which ran as it should on N8VEM.

zcc - Frontend for the z88dk Cross-C Compiler v2.57 (C) 7.10.2007
D.J.Morris

Have not tried any practical programs yet.
Juha