]> git.sur5r.net Git - cc65/blobdiff - include/atari.h
Changed c128 accelerator code and documention to include both C64 and C128 support.
[cc65] / include / atari.h
index 76684c624acde8be2cafc69d1e0834991bd8d5dd..4bed8d7a704455c949c1fce02fb9b411b9d14653 100644 (file)
 #define TGI_COLOR_LIGHTBLUE     COLOR_LIGHTBLUE
 #define TGI_COLOR_GRAY3         COLOR_GRAY3
 
+/* Masks for joy_read */
+#define JOY_UP_MASK     0x01
+#define JOY_DOWN_MASK   0x02
+#define JOY_LEFT_MASK   0x04
+#define JOY_RIGHT_MASK  0x08
+#define JOY_BTN_1_MASK  0x10
+
+#define JOY_FIRE_MASK   JOY_BTN_1_MASK
+#define JOY_FIRE(v)     ((v) & JOY_FIRE_MASK)
+
 /* color register functions */
 extern void __fastcall__ _setcolor     (unsigned char color_reg, unsigned char hue, unsigned char luminace);
 extern void __fastcall__ _setcolor_low (unsigned char color_reg, unsigned char color_value);
@@ -161,13 +171,12 @@ extern void __fastcall__ _scroll (signed char numlines);
                                           /* numlines < 0  scrolls down */
 
 /* misc. functions */
-extern unsigned char get_ostype(void);            /* get ROM version */
-extern unsigned char get_tv(void);                /* get TV system */
-extern void _save_vecs(void);                     /* save system vectors */
-extern void _rest_vecs(void);                     /* restore system vectors */
-extern char *_getdefdev(void);                    /* get default floppy device */
-extern unsigned char _is_cmdline_dos(void);       /* does DOS support command lines */
-extern unsigned char doesclrscrafterexit (void);  /* will DOS clear the screen after program termination */
+extern unsigned char get_ostype(void);       /* get ROM version */
+extern unsigned char get_tv(void);           /* get TV system */
+extern void _save_vecs(void);                /* save system vectors */
+extern void _rest_vecs(void);                /* restore system vectors */
+extern char *_getdefdev(void);               /* get default floppy device */
+extern unsigned char _is_cmdline_dos(void);  /* does DOS support command lines */
 
 /* global variables */
 extern unsigned char _dos_type;         /* the DOS flavour */
@@ -346,5 +355,7 @@ struct __iocb {
 #define IOCB_GETCWD      0x30  /* get current directory (MyDOS/SpartaDOS) */
 #define IOCB_FORMAT      0xFE  /* format */
 
+
+
 /* End of atari.h */
-#endif /* #ifndef _ATARI_H */
+#endif