aboutsummaryrefslogtreecommitdiff
path: root/config/os2ram.h
diff options
context:
space:
mode:
Diffstat (limited to 'config/os2ram.h')
-rw-r--r--config/os2ram.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/os2ram.h b/config/os2ram.h
new file mode 100644
index 0000000..46d0a0e
--- /dev/null
+++ b/config/os2ram.h
@@ -0,0 +1,6 @@
+/* cc65's libsrc/atari/ostype.s offers detailed OS type detection.
+ All we care about is "Is it an XL/XE or a 400/800?", which
+ boils down to this: */
+#define is_xl() ( *((char *)0xfcd8) != 0xa2 )
+
+void os_to_ram(void);