mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-01 13:50:30 +00:00
16 lines
342 B
C
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());
|
||
|
}
|
||
|
}
|