SPARTADOS = 1
OSADOS = 2 ; OS/A+
MYDOS = 3
+XDOS = 4
NODOS = 255
;-------------------------------------------------------------------------
<sect1>Atari specific functions<p>
-The functions listed below are special for the Atari. See the <htmlurl
-url="funcref.html" name="function reference"> for declaration and usage.
+The functions and global variable listed below are special for the Atari.
+See the <htmlurl url="funcref.html" name="function reference"> for declaration and usage.
<itemize>
<item>get_ostype
<item>get_tv
+<item>_dos_type
<item>_gtia_mkcolor
<item>_getcolor
<item>_getdefdev
#define SPARTADOS 1
#define OSADOS 2
#define MYDOS 3
+#define XDOS 4
#define NODOS 255
/* Define hardware */
; ------------------------------------------------------------------------
; DOS type detection
-.segment "INIT"
+.segment "INIT"
-detect: lda #ATARIDOS
- sta __dos_type ; set default
-
- lda DOS
+detect: lda DOS
cmp #'S' ; SpartaDOS
beq spdos
cmp #'M' ; MyDOS
beq mydos
+ cmp #'X' ; XDOS
+ beq xdos
+ lda #$4C ; probably default
ldy #COMTAB
- lda #$4C
cmp (DOSVEC),y
bne done
-
ldy #ZCRNAME
cmp (DOSVEC),y
bne done
.byte $2C ; BIT <abs>
mydos: lda #MYDOS
+ .byte $2C ; BIT <abs>
+
+xdos: lda #XDOS
sta __dos_type
done: rts
; ------------------------------------------------------------------------
; Data
- .bss
-
-__dos_type: .res 1
+ .bss
+__dos_type: .res 1 ; default to ATARIDOS