mirror of
https://github.com/cc65/cc65.git
synced 2025-04-01 18:30:06 +00:00
Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__.
This commit is contained in:
parent
92ad74a49f
commit
83280e1ee2
@ -41,9 +41,9 @@ _IOLBF = 1
|
||||
_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
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
|
||||
/* Check for errors */
|
||||
#if !defined(__APPLE2__) && !defined(__APPLE2ENH__)
|
||||
#if !defined(__APPLE2__)
|
||||
# error This module may only be used when compiling for the Apple ][!
|
||||
#endif
|
||||
|
||||
@ -142,7 +142,7 @@ extern unsigned char _filetype; /* Default 6 */
|
||||
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[] */
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
/* Check for errors */
|
||||
#if !defined(__ATARI__) && !defined(__ATARIXL__)
|
||||
#if !defined(__ATARI__)
|
||||
# error This module may only be used when compiling for the Atari!
|
||||
#endif
|
||||
|
||||
|
@ -59,11 +59,11 @@
|
||||
#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>
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
typedef struct DIR DIR;
|
||||
|
||||
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
|
||||
#if defined(__APPLE2__)
|
||||
|
||||
struct dirent {
|
||||
char d_name[16];
|
||||
@ -78,7 +78,7 @@ struct dirent {
|
||||
#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 */
|
||||
|
@ -69,9 +69,9 @@ extern FILE* stderr;
|
||||
#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)
|
||||
|
@ -76,7 +76,7 @@ extern struct _timezone {
|
||||
|
||||
|
||||
|
||||
#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()
|
||||
|
@ -63,7 +63,7 @@ static char GetKeyUpdate (void);
|
||||
# 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
|
||||
@ -93,7 +93,7 @@ static char GetKeyUpdate (void);
|
||||
# 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
|
||||
|
@ -28,7 +28,7 @@
|
||||
#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
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
/* Workaround missing clock stuff */
|
||||
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
|
||||
#ifdef __APPLE2__
|
||||
# define clock() 0
|
||||
# define CLOCKS_PER_SEC 1
|
||||
#endif
|
||||
|
@ -209,6 +209,7 @@ static void SetSys (const char* Sys)
|
||||
break;
|
||||
|
||||
case TGT_ATARIXL:
|
||||
NewSymbol ("__ATARI__", 1);
|
||||
NewSymbol ("__ATARIXL__", 1);
|
||||
break;
|
||||
|
||||
@ -253,6 +254,7 @@ static void SetSys (const char* Sys)
|
||||
break;
|
||||
|
||||
case TGT_APPLE2ENH:
|
||||
NewSymbol ("__APPLE2__", 1);
|
||||
NewSymbol ("__APPLE2ENH__", 1);
|
||||
break;
|
||||
|
||||
|
@ -165,6 +165,7 @@ static void SetSys (const char* Sys)
|
||||
break;
|
||||
|
||||
case TGT_ATARIXL:
|
||||
DefineNumericMacro ("__ATARI__", 1);
|
||||
DefineNumericMacro ("__ATARIXL__", 1);
|
||||
break;
|
||||
|
||||
@ -209,6 +210,7 @@ static void SetSys (const char* Sys)
|
||||
break;
|
||||
|
||||
case TGT_APPLE2ENH:
|
||||
DefineNumericMacro ("__APPLE2__", 1);
|
||||
DefineNumericMacro ("__APPLE2ENH__", 1);
|
||||
break;
|
||||
|
||||
|
@ -16,10 +16,10 @@
|
||||
#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"
|
||||
|
@ -25,7 +25,7 @@
|
||||
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;
|
||||
@ -74,7 +74,7 @@ int main(int argc,char **argv)
|
||||
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");
|
||||
|
@ -18,7 +18,7 @@ static const unsigned char small_bar[8] = {
|
||||
' ', 0xa5, 0xb4, 0xb5, 0xa1, 0xb6, 0xaa, 0xa7
|
||||
};
|
||||
|
||||
#elif defined(__ATARI__) || defined(__ATARIXL__)
|
||||
#elif defined(__ATARI__)
|
||||
#endif
|
||||
|
||||
/* Screen co-ordinates for the progress meter */
|
||||
@ -39,7 +39,7 @@ static void ProgressMeter (unsigned Val)
|
||||
revers (revers_bar[Val]);
|
||||
cputc (small_bar[Val]);
|
||||
|
||||
#elif defined(__ATARI__) || defined(__ATARIXL__)
|
||||
#elif defined(__ATARI__)
|
||||
#endif
|
||||
|
||||
revers (0);
|
||||
|
@ -13,10 +13,10 @@
|
||||
#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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user