2016-12-28 20:32:00 +00:00
|
|
|
// ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code.
|
2020-05-19 16:28:36 +00:00
|
|
|
// Copyright (C) 1998-2020 Marco Baye
|
2012-02-27 21:14:46 +00:00
|
|
|
// Have a look at "acme.c" for further info
|
|
|
|
//
|
|
|
|
// Platform specific stuff (in this case, for AmigaOS)
|
|
|
|
#ifndef platform_H
|
|
|
|
#define platform_H
|
|
|
|
|
|
|
|
|
|
|
|
// symbolic constants and macros
|
|
|
|
|
|
|
|
// called once on program startup (could register exit handler, if needed)
|
|
|
|
#define PLATFORM_INIT
|
|
|
|
|
|
|
|
// convert UNIX-style pathname to Amiga-style pathname (no change)
|
2020-05-19 16:28:36 +00:00
|
|
|
//#define PLATFORM_CONVERTPATH(p)
|
2012-02-27 21:14:46 +00:00
|
|
|
|
2017-12-22 22:55:36 +00:00
|
|
|
// directory separator for include paths
|
|
|
|
#define DIRECTORY_SEPARATOR '\0' // actually '/', but paths ending on ':' are ok, so auto-adding '/' is bad)
|
|
|
|
|
2012-02-27 21:14:46 +00:00
|
|
|
// string containing the prefix for accessing files from the library tree
|
|
|
|
#define PLATFORM_LIBPREFIX "progdir:acme_lib/"
|
|
|
|
#define NO_NEED_FOR_ENV_VAR
|
|
|
|
|
|
|
|
// setting file types of created files
|
2012-10-25 15:33:14 +00:00
|
|
|
#define PLATFORM_SETFILETYPE_APPLE(a)
|
2012-02-27 21:14:46 +00:00
|
|
|
#define PLATFORM_SETFILETYPE_CBM(a)
|
|
|
|
#define PLATFORM_SETFILETYPE_PLAIN(a)
|
|
|
|
#define PLATFORM_SETFILETYPE_TEXT(a)
|
|
|
|
|
|
|
|
// platform specific message output
|
|
|
|
#define PLATFORM_WARNING(a)
|
|
|
|
#define PLATFORM_ERROR(a)
|
|
|
|
#define PLATFORM_SERIOUS(a)
|
|
|
|
|
|
|
|
// integer-to-character conversion
|
|
|
|
#define PLATFORM_UINT2CHAR(x) \
|
|
|
|
do { \
|
|
|
|
x ^= x >> 16; \
|
|
|
|
x ^= x >> 8; \
|
|
|
|
x &= 255; \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
// output of platform-specific command line switches
|
|
|
|
#define PLATFORM_OPTION_HELP
|
|
|
|
|
|
|
|
// processing of platform-specific command line switches
|
|
|
|
#define PLATFORM_SHORTOPTION_CODE
|
|
|
|
#define PLATFORM_LONGOPTION_CODE
|
|
|
|
|
|
|
|
// other stuff
|
|
|
|
#ifdef __SASC__
|
|
|
|
#define inline
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|