1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-30 03:29:39 +00:00
8bitworkshop/presets/cpc/skeleton.sdcc
2021-12-02 13:01:02 -06:00

24 lines
458 B
Plaintext

#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);
}