1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-14 10:29:37 +00:00

Atari: Add detection of RealDOS (http://www.realdos.net/realdos.html).

This commit is contained in:
Christian Groessler 2018-09-06 01:10:47 +02:00 committed by Oliver Schmidt
parent af50b5e516
commit e9b8f5d814
3 changed files with 13 additions and 18 deletions

View File

@ -1005,12 +1005,13 @@ diopp_size = 5 ; size of structure
SPARTADOS = 0 SPARTADOS = 0
OSADOS = 1 ; OS/A+ OSADOS = 1 ; OS/A+
XDOS = 2 XDOS = 2
ATARIDOS = 3 REALDOS = 3
MYDOS = 4 ATARIDOS = 4
MYDOS = 5
NODOS = 255 NODOS = 255
; The DOSes with dos_type below or equal MAX_DOS_WITH_CMDLINE do support ; The DOSes with dos_type below or equal MAX_DOS_WITH_CMDLINE do support
; command line arguments. ; command line arguments.
MAX_DOS_WITH_CMDLINE = XDOS MAX_DOS_WITH_CMDLINE = REALDOS
;------------------------------------------------------------------------- ;-------------------------------------------------------------------------
; XDOS defines (version 2.4, taken from xdos24.pdf) ; XDOS defines (version 2.4, taken from xdos24.pdf)

View File

@ -6,7 +6,7 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2000-2006 Mark Keates <markk@dendrite.co.uk> */ /* (C) 2000-2018 Mark Keates <markk@dendrite.co.uk> */
/* Freddy Offenga <taf_offenga@yahoo.com> */ /* Freddy Offenga <taf_offenga@yahoo.com> */
/* Christian Groessler <chris@groessler.org> */ /* Christian Groessler <chris@groessler.org> */
/* */ /* */
@ -232,18 +232,6 @@ extern void atrx15_tgi[];
extern void atrx15p2_tgi[]; extern void atrx15p2_tgi[];
#endif #endif
/* provide old names for backwards compatibility */
#ifdef ATARI_COMPAT_PRE_2_11
#define setcolor _setcolor
#define setcolor_low _setcolor_low
#define getcolor _getcolor
#define graphics _graphics
#define scroll _scroll
#define save_vecs _save_vecs
#define rest_vecs _rest_vecs
#define getdefdev _getdefdev
#endif /* #ifdef ATARI_COMPAT_PRE_2_11 */
/* get_ostype return value defines (for explanation, see ostype.s) */ /* get_ostype return value defines (for explanation, see ostype.s) */
/* masks */ /* masks */
#define AT_OS_TYPE_MAIN 7 #define AT_OS_TYPE_MAIN 7
@ -275,8 +263,9 @@ extern void atrx15p2_tgi[];
#define SPARTADOS 0 #define SPARTADOS 0
#define OSADOS 1 #define OSADOS 1
#define XDOS 2 #define XDOS 2
#define ATARIDOS 3 #define REALDOS 3
#define MYDOS 4 #define ATARIDOS 4
#define MYDOS 5
#define NODOS 255 #define NODOS 255
/* Define hardware */ /* Define hardware */

View File

@ -20,6 +20,8 @@ detect: lda DOS
beq mydos beq mydos
cmp #'X' ; XDOS cmp #'X' ; XDOS
beq xdos beq xdos
cmp #'R' ; RealDOS
beq rdos
lda #$4C ; probably default lda #$4C ; probably default
ldy #COMTAB ldy #COMTAB
@ -41,6 +43,9 @@ spdos: lda #SPARTADOS
mydos: lda #MYDOS mydos: lda #MYDOS
.byte $2C ; BIT <abs> .byte $2C ; BIT <abs>
rdos: lda #REALDOS
.byte $2C ; BIT <abs>
xdos: lda #XDOS xdos: lda #XDOS
sta __dos_type sta __dos_type
done: rts done: rts