_IONBF = 2
BUFSIZ = 256
EOF = -1
-.if .defined(__APPLE2__) .or .defined(__APPLE2ENH__)
+.if .defined(__APPLE2__)
FILENAME_MAX = 64+1
-.elseif .defined(__ATARI__) .or .defined(__ATARIXL__)
+.elseif .defined(__ATARI__)
FILENAME_MAX = 12+1
.elseif .defined(__LUNIX__)
FILENAME_MAX = 80+1
/* Check for errors */
-#if !defined(__APPLE2__) && !defined(__APPLE2ENH__)
+#if !defined(__APPLE2__)
# error This module may only be used when compiling for the Apple ][!
#endif
extern unsigned int _auxtype; /* Default 0 */
/* The addresses of the static drivers */
-#ifndef __APPLE2ENH__
+#if !defined(__APPLE2ENH__)
extern void a2_auxmem_emd[];
extern void a2_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
extern void a2_stdmou_mou[]; /* Referred to by mouse_static_stddrv[] */
/* Check for errors */
-#if !defined(__ATARI__) && !defined(__ATARIXL__)
+#if !defined(__ATARI__)
# error This module may only be used when compiling for the Atari!
#endif
#endif
/* Include the correct machine-specific file */
-#if defined(__APPLE2__)
-# include <apple2.h>
-#elif defined(__APPLE2ENH__)
+#if defined(__APPLE2ENH__)
# include <apple2enh.h>
-#elif defined(__ATARI__) || defined(__ATARIXL__)
+#elif defined(__APPLE2__)
+# include <apple2.h>
+#elif defined(__ATARI__)
# include <atari.h>
#elif defined(__ATMOS__)
# include <atmos.h>
typedef struct DIR DIR;
-#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#if defined(__APPLE2__)
struct dirent {
char d_name[16];
#define _DE_ISLBL(t) (0)
#define _DE_ISLNK(t) (0)
-#elif defined(__ATARI__) || defined(__ATARIXL__)
+#elif defined(__ATARI__)
struct dirent {
char d_name[13]; /* 8.3 + trailing 0 */
#define TMP_MAX 256
/* Standard defines that are platform dependent */
-#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#if defined(__APPLE2__)
# define FILENAME_MAX (64+1)
-#elif defined(__ATARI__) || defined(__ATARIXL__)
+#elif defined(__ATARI__)
# define FILENAME_MAX (12+1)
#elif defined(__LUNIX__)
# define FILENAME_MAX (80+1)
-#if defined(__ATARI__) || defined(__ATARIXL__)
+#if defined(__ATARI__)
/* The clock depends on the video standard, so read it at runtime */
unsigned _clocks_per_sec (void);
# define CLK_TCK _clocks_per_sec()
# define COLOR_FRAMEHIGH COLOR_WHITE
# define COLOR_FRAMELOW COLOR_GRAY3
# else
-# if defined(__APPLE2__) || defined(__APPLE2ENH__)
+# if defined(__APPLE2__)
# define COLOR_BORDER COLOR_BLACK
# define COLOR_BACKGROUND COLOR_BLACK
# define COLOR_TEXTHIGH COLOR_BLACK
# define MAX_X 80
# define MAX_Y 25
# define DUMP_BYTES 16
-#elif defined(__APPLE2__) || defined(__APPLE2ENH__) || defined(__ATARI__) || defined(__ATARIXL__)
+#elif defined(__APPLE2__) || defined(__ATARI__)
# define MAX_X 40
# define MAX_Y 24
# define DUMP_BYTES 8
#define divfp(_a,_b) ((((signed long)_a)<<fpshift)/(_b))
/* Workaround missing clock stuff */
-#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#ifdef __APPLE2__
# define clock() 0
# define CLK_TCK 1
#endif
/* Workaround missing clock stuff */
-#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#ifdef __APPLE2__
# define clock() 0
# define CLOCKS_PER_SEC 1
#endif
break;
case TGT_ATARIXL:
+ NewSymbol ("__ATARI__", 1);
NewSymbol ("__ATARIXL__", 1);
break;
break;
case TGT_APPLE2ENH:
+ NewSymbol ("__APPLE2__", 1);
NewSymbol ("__APPLE2ENH__", 1);
break;
break;
case TGT_ATARIXL:
+ DefineNumericMacro ("__ATARI__", 1);
DefineNumericMacro ("__ATARIXL__", 1);
break;
break;
case TGT_APPLE2ENH:
+ DefineNumericMacro ("__APPLE2__", 1);
DefineNumericMacro ("__APPLE2ENH__", 1);
break;
#define DRIVERNAME "cbm510-ram.emd"
#elif defined(__CBM610__)
#define DRIVERNAME "cbm610-ram.emd"
-#elif defined(__APPLE2__)
-#define DRIVERNAME "a2.auxmem.emd"
#elif defined(__APPLE2ENH__)
#define DRIVERNAME "a2e.auxmem.emd"
+#elif defined(__APPLE2__)
+#define DRIVERNAME "a2.auxmem.emd"
#else
#define DRIVERNAME "unknown"
#error "Unknown target system"
extern int getsp(void); /* is provided in getsp.s */
/* Atari's fd indirection table */
-#if defined(__ATARI__) || defined(__ATARIXL__)
+#ifdef __ATARI__
extern char __fd_index[];
struct fd_t {
char usage;
return(0);
}
printf("open success -- handle = $%x, sp = %d\n",fd,csp);
-#if defined(__ATARI__) || defined(__ATARIXL__)
+#ifdef __ATARI__
printf("fd_index:\n ");
for (i=0; i<12; i++) printf("%02X ",__fd_index[i]);
printf("\nfd_table:\n");
' ', 0xa5, 0xb4, 0xb5, 0xa1, 0xb6, 0xaa, 0xa7\r
};\r
\r
-#elif defined(__ATARI__) || defined(__ATARIXL__)\r
+#elif defined(__ATARI__)\r
#endif\r
\r
/* Screen co-ordinates for the progress meter */\r
revers (revers_bar[Val]);\r
cputc (small_bar[Val]);\r
\r
-#elif defined(__ATARI__) || defined(__ATARIXL__)\r
+#elif defined(__ATARI__)\r
#endif\r
\r
revers (0);\r
#define DRIVERNAME "plus4-stdser.ser"
#elif defined(__CBM610__)
#define DRIVERNAME "cbm610-std.ser"
-#elif defined(__APPLE2__)
-#define DRIVERNAME "a2.ssc.ser"
#elif defined(__APPLE2ENH__)
#define DRIVERNAME "a2e.ssc.ser"
+#elif defined(__APPLE2__)
+#define DRIVERNAME "a2.ssc.ser"
#else
#define DRIVERNAME "unknown"
#error "Unknown target system"