From 0d0977ff6951291c737e1901b14cfffd6ae4575c Mon Sep 17 00:00:00 2001 From: cpg Date: Tue, 12 Aug 2003 20:02:01 +0000 Subject: [PATCH] added _dos_type with defines and getdefdev() git-svn-id: svn://svn.cc65.org/cc65/trunk@2299 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/atari.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/atari.h b/include/atari.h index 551a320e7..b365033b8 100644 --- a/include/atari.h +++ b/include/atari.h @@ -152,6 +152,10 @@ extern void save_vecs(void); /* save system vectors */ extern void rest_vecs(void); /* restore system vectors */ extern unsigned char get_ostype(void); /* get ROM version */ extern unsigned char get_tv(void); /* get TV system */ +extern char *getdefdev(void); /* get default floppy device */ + +/* global variables */ +extern unsigned char _dos_type; /* the DOS flavour */ /* get_ostype return value defines (for explanation, see ostype.s) */ /* masks */ @@ -180,6 +184,13 @@ extern unsigned char get_tv(void); /* get TV system */ #define AT_NTSC 0 #define AT_PAL 1 +/* valid _dos_type values */ +#define ATARIDOS 0 +#define SPARTADOS 1 +#define OSADOS 2 +#define MYDOS 3 /* detection currently not implemented */ +#define NODOS 255 /* detection currently not implemented */ + /* Define hardware */ #include <_gtia.h> #define GTIA_READ (*(struct __gtia_read*)0xD000) -- 2.39.5