mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-25 00:02:16 +00:00
21 lines
347 B
C++
21 lines
347 B
C++
// Hello World for the Oscar64 optimizing C compiler
|
|
// https://github.com/drmortalwombat/oscar64
|
|
|
|
#include <stdio.h>
|
|
#include <conio.h>
|
|
|
|
int main(void)
|
|
{
|
|
clrscr();
|
|
textcolor(COLOR_LT_BLUE);
|
|
gotoxy(10, 10);
|
|
|
|
// use alternate character set
|
|
putchar(14);
|
|
|
|
// p prefix = PETSCII string literal
|
|
printf(p"Hello, world!");
|
|
|
|
return 0;
|
|
}
|