/* {{PROJECT_NAME}} - starter program generated by the C64/C128 Dev Foundry. ** Mixed C + ca65: frame.s provides wait_frame(), a raster-synchronised frame wait. ** Milestone M0 only: proves the toolchain, the display, the frame loop and the smoke test. */ #include #if defined(__C128__) #include #endif #include "smoke.h" #include "frame.h" int main(void) { unsigned char frames = 0; #if defined(__C128__) && defined(FOUNDRY_VDC80) videomode(VIDEOMODE_80COL); #elif defined(__C128__) videomode(VIDEOMODE_40COL); #endif clrscr(); cputsxy(0, 0, "{{SCREEN_TITLE}}"); cputsxy(0, 2, "STARTER OK"); cputsxy(0, 4, "PRESS ANY KEY TO RETURN TO BASIC"); cputsxy(0, 6, "FRAME:"); smoke_capture(); smoke_ready(); while (!kbhit()) { wait_frame(); gotoxy(7, 6); cprintf("%3u", (unsigned)frames++); } cgetc(); clrscr(); return 0; }