aboutsummaryrefslogtreecommitdiff
path: root/hello52.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-03-11 06:58:06 -0500
committerB. Watson <yalhcru@gmail.com>2016-03-11 06:58:06 -0500
commitbe8ae80aea3e0f6223ca2b201f6b8aecb738ce69 (patch)
treef0bdd3353a0433c3914111862b5359535501bdbb /hello52.c
parent57f2e66c1740eb97034d2cae3fe04d841c305c9d (diff)
downloadtaipan-be8ae80aea3e0f6223ca2b201f6b8aecb738ce69.tar.gz
preliminary work for 5200 port
Diffstat (limited to 'hello52.c')
-rw-r--r--hello52.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/hello52.c b/hello52.c
new file mode 100644
index 0000000..eba835d
--- /dev/null
+++ b/hello52.c
@@ -0,0 +1,20 @@
+/*
+ build as a 32K diagnostic cart:
+ cl65 -m hello52.map -t atari5200 -Wl -D__CARTSIZE__=0x8000 -o 1.bin hello52.c cartname_5200.s cartyear_5200.s crt0_5200.s
+
+ run with original OS:
+ atari800 -5200 -cart-type 4 -cart 1.bin
+
+ or run with rev A:
+ atari800 -5200 -5200-rev a -cart-type 4 -cart 1.bin
+
+*/
+
+#include <conio.h>
+
+int main(void) {
+ gotoxy(5, 11);
+ cputs("HELLO WORLD");
+hang: goto hang;
+ return 0;
+}