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

added _dos_type with defines and getdefdev()

git-svn-id: svn://svn.cc65.org/cc65/trunk@2299 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg 2003-08-12 20:02:01 +00:00
parent 624b88e976
commit 0d0977ff69

View File

@ -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)