1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-22 14:33:51 +00:00
8bitworkshop/presets/atari8-800/helloconio.c

16 lines
342 B
C
Raw Normal View History

2020-07-28 20:06:49 +00:00
#include <conio.h>
#include <atari.h>
void main() {
clrscr();
// position the cursor, output text
gotoxy(0,1);
cputs("Hello Atari 8-bit World!\r\n\r\nPlease type a key...\r\n");
// read from the console
// cartridge ROMs do not exit, so loop forever
while (1) {
cprintf("You typed character code %d!\r\n", cgetc());
}
}