X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Ftarget.h;h=5b086e40c9bd93effe80886dc9dda0e39220d166;hb=2cd4b5109a59c3743b38369359c389cc1b9edab4;hp=fa1d42964519ec8e36bd38442ca1e513971873fd;hpb=4bdcad03a07369cc5a54675363906ba4e82c7e7d;p=cc65 diff --git a/src/common/target.h b/src/common/target.h index fa1d42964..5b086e40c 100644 --- a/src/common/target.h +++ b/src/common/target.h @@ -1,8 +1,8 @@ /*****************************************************************************/ /* */ -/* target.h */ +/* target.h */ /* */ -/* Target specification */ +/* Target specification */ /* */ /* */ /* */ @@ -44,17 +44,20 @@ /*****************************************************************************/ -/* Data */ +/* Data */ /*****************************************************************************/ /* Supported target systems */ typedef enum { - TGT_UNKNOWN = -1, /* Not specified or invalid target */ + TGT_UNKNOWN = -1, /* Not specified or invalid target */ TGT_NONE, TGT_MODULE, TGT_ATARI, + TGT_ATARI2600, + TGT_ATARI5200, + TGT_ATARIXL, TGT_VIC20, TGT_C16, TGT_C64, @@ -62,46 +65,58 @@ typedef enum { TGT_PLUS4, TGT_CBM510, TGT_CBM610, + TGT_OSIC1P, TGT_PET, TGT_BBC, TGT_APPLE2, TGT_APPLE2ENH, TGT_GEOS_CBM, + TGT_CREATIVISION, TGT_GEOS_APPLE, TGT_LUNIX, TGT_ATMOS, + TGT_TELESTRAT, TGT_NES, TGT_SUPERVISION, TGT_LYNX, - TGT_COUNT /* Number of target systems */ + TGT_SIM6502, + TGT_SIM65C02, + TGT_PCENGINE, + TGT_GAMATE, + TGT_C65, + TGT_COUNT /* Number of target systems */ } target_t; /* Collection of target properties */ typedef struct TargetProperties TargetProperties; struct TargetProperties { - const char Name[12]; /* Name of the target */ + const char Name[13]; /* Name of the target */ cpu_t DefaultCPU; /* Default CPU for this target */ + unsigned char BinFmt; /* Default binary format for this target */ const unsigned char* CharMap; /* Character translation table */ }; /* Target system */ -extern target_t Target; +extern target_t Target; -/* Table with default CPUs per target */ -extern const cpu_t DefaultCPU[TGT_COUNT]; +/* Types of available output formats */ +#define BINFMT_DEFAULT 0 /* Default (binary) */ +#define BINFMT_BINARY 1 /* Straight binary format */ +#define BINFMT_O65 2 /* Andre Fachats o65 format */ +#define BINFMT_ATARIEXE 3 /* Standard Atari binary load */ /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ target_t FindTarget (const char* Name); /* Find a target by name and return the target id. TGT_UNKNOWN is returned if - * the given name is no valid target. - */ +** the given name is no valid target. +*/ const TargetProperties* GetTargetProperties (target_t Target); /* Return the properties for a target */ @@ -112,7 +127,5 @@ const char* GetTargetName (target_t Target); /* End of target.h */ -#endif - - +#endif