From b3d7c09ba186326c5d539a65c531a06dea566c81 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Wed, 25 May 2016 01:06:53 +0200 Subject: [PATCH] forgot to add the new file atari/is_cmdline_dos.s in my last commit... --- libsrc/atari/is_cmdline_dos.s | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libsrc/atari/is_cmdline_dos.s diff --git a/libsrc/atari/is_cmdline_dos.s b/libsrc/atari/is_cmdline_dos.s new file mode 100644 index 000000000..71b35fbad --- /dev/null +++ b/libsrc/atari/is_cmdline_dos.s @@ -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 -- 2.39.5