1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-07 01:29:30 +00:00
8bitworkshop/presets/cpc/skeleton.sdcc

24 lines
458 B
Plaintext
Raw Normal View History

#include "cpctelera.h"
#include <stdio.h>
#include <string.h>
void main(void) {
// Needed for screen clear to work
cpct_disableFirmware ();
cpct_disableUpperROM ();
// Clear Screen filling it up with 0's
cpct_clearScreen(0);
// Print out some messages using printf
printf("\017\003Hello \017\002World!\n\r");
// printf() may have enabled upper ROM, disable
cpct_disableUpperROM ();
// Loop forever
while (1);
}