]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/dosdetect.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / atari / dosdetect.s
index a9014fe93ab541c0612a954a1495fe9f65116524..371741616e9d1c00df6d31be85f2e7a73ca2ffb8 100644 (file)
@@ -1,5 +1,5 @@
 ;
-; Freddy Offenga & Christian Groessler, June 2004
+; Freddy Offenga, Stefan Haubenthal, Christian Groessler, March 2007
 ;
 ; detect the DOS version we're running on
 ;
@@ -8,8 +8,11 @@
        .constructor    detect,26
        .export         __dos_type
 
+; ------------------------------------------------------------------------
 ; DOS type detection
 
+.segment        "INIT"
+
 detect:        lda     #ATARIDOS
        sta     __dos_type      ; set default
 
@@ -32,18 +35,19 @@ detect:     lda     #ATARIDOS
        cmp     (DOSVEC),y
        beq     done
        lda     #OSADOS
-       sta     __dos_type
-       rts
+       .byte   $2C             ; BIT <abs>
 
 spdos: lda     #SPARTADOS
-       sta     __dos_type
-done:  rts
+       .byte   $2C             ; BIT <abs>
 
 mydos: lda     #MYDOS
        sta     __dos_type
-       rts
+done:  rts
+
+; ------------------------------------------------------------------------
+; Data
 
-       .bss
+       .bss
 
 __dos_type:    .res    1