/* */
/*****************************************************************************/
+
+
#ifndef _ATARI_H
#define _ATARI_H
+
+
+/* Check for errors */
+#if !defined(__ATARI__)
+# error This module may only be used when compiling for the Atari!
+#endif
+
+
+
/* Character codes */
#define CH_DEL 0xFE
#define CH_ESC 0x1B
#define HUE_GREEN 12
#define HUE_YELLOWGREEN 13
#define HUE_YELLOW 14
-#define HUE_YELLOWRED 15
+#define HUE_YELLOWRED 15
/* Color defines, similar to c64 colors (untested) */
#define COLOR_BLACK _gtia_mkcolor(HUE_GREY,0)
extern unsigned char __fastcall__ getcolor (unsigned char color_reg);
/* other screen functions */
+extern int __fastcall__ graphics(unsigned char mode); /* mode value same as in BASIC */
extern void __fastcall__ scroll (signed char numlines);
/* numlines > 0 scrolls up */
/* numlines < 0 scrolls down */
/* device control block */
struct __dcb {
unsigned char device; /* device id */
- unsigned char unit; /* unix number */
+ unsigned char unit; /* unit number */
unsigned char command; /* command */
unsigned char status; /* command type / status return */
void *buffer; /* pointer to buffer */