Debian Codegraph @

src/asm/_std.h

raw symbols SCIP
1 //
2 // ACME - a crossassembler for producing 6502/65c02/65816 code.
3 // Copyright (C) 1998-2006 Marco Baye
4 // Have a look at "acme.c" for further info
5 //
6 // Platform specific stuff (in this case, for unknown OSes)
7 #ifndef platform_H
8 #define platform_H
9
10
11 // Symbolic constants and macros
12
13 // Called once on program startup (could register exit handler, if needed)
14 #define PLATFORM_INIT AnyOS_entry()
15
16 // Convert UNIX-style pathname to AnyOS-style pathname (no change)
17 #define PLATFORM_CONVERTPATHCHAR(a) (a)
18
19 // String containing the prefix for accessing files from the library tree
20 #define PLATFORM_LIBPREFIX AnyOS_lib_prefix
21
22 // Setting the created files' types
23 #define PLATFORM_SETFILETYPE_CBM(a)
24 #define PLATFORM_SETFILETYPE_PLAIN(a)
25 #define PLATFORM_SETFILETYPE_TEXT(a)
26
27 // Platform specific message output
28 #define PLATFORM_WARNING(a)
29 #define PLATFORM_ERROR(a)
30 #define PLATFORM_SERIOUS(a)
31
32 // Integer-to-character conversion
33 #define PLATFORM_UINT2CHAR(x) do {\
34 x ^= x >> 16;\
35 x ^= x >> 8;\
36 x &= 255;\
37 } while(0)
38
39 // Output of platform-specific command line switches
40 #define PLATFORM_OPTION_HELP
41
42 // Processing of platform-specific command line switches
43 #define PLATFORM_SHORTOPTION_CODE
44 #define PLATFORM_LONGOPTION_CODE
45
46
47 // Variables
48 extern char *AnyOS_lib_prefix; // header string of library tree
49
50
51 // Prototypes
52
53 // used as PLATFORM_INIT: reads "ACME" environment variable
54 extern void AnyOS_entry(void);
55
56
57 #endif