Code: Select all
#include <stdio.h>
#include <arch/zx/spectrum.h>
main(int arg2, char *arg1)
{
ARG_STR;
ARG_INT;
ARG_END;
printf("Arg1: %s, arg2: %d \n", arg1 ,arg2);
STMT_RET;
}
Code: Select all
#include <stdio.h>
#include <arch/zx/spectrum.h>
main(int arg2, char *arg1)
{
ARG_STR;
ARG_INT;
ARG_END;
printf("Arg1: %s, arg2: %d \n", arg1 ,arg2);
STMT_RET;
}
Code: Select all
#include <stdio.h>
#include <zx81.h>
main(unsigned int arg2, char *arg1)
{
ARG_STR;
ARG_UINT;
ARG_END;
printf("Arg1: ");
zx_asciimode(0);
printf("%s", arg1);
zx_asciimode(1);
printf(", arg2: %u \n" ,arg2);
STMT_RET;
}