]> git.sur5r.net Git - cc65/commitdiff
forgot to add the new file atari/is_cmdline_dos.s in my last commit... 297/head
authorChristian Groessler <chris@groessler.org>
Tue, 24 May 2016 23:06:53 +0000 (01:06 +0200)
committerChristian Groessler <chris@groessler.org>
Tue, 24 May 2016 23:06:53 +0000 (01:06 +0200)
libsrc/atari/is_cmdline_dos.s [new file with mode: 0644]

diff --git a/libsrc/atari/is_cmdline_dos.s b/libsrc/atari/is_cmdline_dos.s
new file mode 100644 (file)
index 0000000..71b35fb
--- /dev/null
@@ -0,0 +1,20 @@
+;
+; Christian Groessler, May-2016
+;
+; unsigned char _is_cmdline_dos(void);
+;
+; returns 0 for non-commandline DOS, 1 for commandline DOS
+;
+
+        .export  __is_cmdline_dos
+        .import  __dos_type
+        .include "atari.inc"
+
+__is_cmdline_dos:
+        ldx     #0
+        lda     __dos_type
+        cmp     #MAX_DOS_WITH_CMDLINE + 1
+        txa
+        rol     a
+        eor     #$01
+        rts