mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-11 02:49:22 +00:00
24 lines
458 B
Plaintext
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);
|
|
}
|