]> git.sur5r.net Git - cc65/commitdiff
More optimization in libsrc/atari/is_cmdline_dos.s. 369/head
authorChristian Groessler <chris@groessler.org>
Tue, 24 Jan 2017 20:01:42 +0000 (21:01 +0100)
committerChristian Groessler <chris@groessler.org>
Tue, 24 Jan 2017 20:01:42 +0000 (21:01 +0100)
Suggestion by Spiro Trikaliotis.

libsrc/atari/is_cmdline_dos.s

index eb474dbfbbb80359c06d9ef92601a69d78a65016..2a9c49e3803099e57d4f3770798f1678429fc610 100644 (file)
@@ -11,9 +11,8 @@
         .include "atari.inc"
 
 __is_cmdline_dos:
-        lda     __dos_type
-        cmp     #MAX_DOS_WITH_CMDLINE + 1
+        lda     #MAX_DOS_WITH_CMDLINE
+        cmp     __dos_type
         lda     #0
         rol     a
-        eor     #$01
         rts