]> git.sur5r.net Git - cc65/commitdiff
displays upper memory limit on Atari machines
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 Jul 2000 00:41:43 +0000 (00:41 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 9 Jul 2000 00:41:43 +0000 (00:41 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@140 b7a2c559-68d2-44c3-8de9-860c34a00d81

testcode/lib/atari/mem.c [new file with mode: 0644]

diff --git a/testcode/lib/atari/mem.c b/testcode/lib/atari/mem.c
new file mode 100644 (file)
index 0000000..6de184e
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * test program to display avail. mem.
+ *
+ */
+
+#include <stdio.h>
+
+unsigned int *APPMHI = (unsigned int *)0xe;
+unsigned int *MEMTOP = (unsigned int *)0x2e5;
+
+unsigned char _graphmode_used = 0;
+
+int main(void)
+{
+    printf("APPMHI = %04X, MEMTOP = %04X\n",*APPMHI,*MEMTOP);
+    printf("press return!\n");
+    getchar();
+    return(0);
+}