From: cpg Date: Tue, 16 Mar 2004 22:47:50 +0000 (+0000) Subject: add MyDOS detection (from Stefan Haubenthal) X-Git-Tag: V2.12.0~887 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=550afe3afabf5a38195305dc8a3ade9b78782eba;p=cc65 add MyDOS detection (from Stefan Haubenthal) git-svn-id: svn://svn.cc65.org/cc65/trunk@2935 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atari/dosdetect.s b/libsrc/atari/dosdetect.s index d7c455f98..380f1837b 100644 --- a/libsrc/atari/dosdetect.s +++ b/libsrc/atari/dosdetect.s @@ -14,8 +14,10 @@ detect: lda #ATARIDOS sta __dos_type ; set default lda DOS - cmp #$53 ; "S" (SpartaDOS) + cmp #'S' ; SpartaDOS beq spdos + cmp #'M' ; MyDOS + beq mydos ldy #COMTAB lda #$4C @@ -37,6 +39,10 @@ spdos: lda #SPARTADOS sta __dos_type done: rts +mydos: lda #MYDOS + sta __dos_type + rts + .bss __dos_type: .res 1