1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-10-31 23:09:49 +00:00
8bitworkshop/presets/atari8-800/helloconio.c
2022-08-30 19:37:30 -05:00

16 lines
342 B
C

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