| 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 |
// Configuration |
| 7 |
#ifndef config_H |
| 8 |
#define config_H |
| 9 |
|
| 10 |
|
| 11 |
// types |
| 12 |
typedef unsigned int zone_t; |
| 13 |
typedef signed long intval_t; // at least 32 bits |
| 14 |
#define INTVAL_MAXCHARACTERS 11 // -2^32 takes 11 characters |
| 15 |
typedef unsigned long uintval_t; // just for logical shift right |
| 16 |
typedef struct node_ra_t node_ra_t; |
| 17 |
typedef struct node_t node_t; |
| 18 |
typedef struct label_t label_t; |
| 19 |
// result structure type definition with support for floating point |
| 20 |
struct result_t { |
| 21 |
int flags; // Expression flags |
| 22 |
union { |
| 23 |
intval_t intval; // integer value |
| 24 |
double fpval; // floating point value |
| 25 |
} val; // Expression value |
| 26 |
}; |
| 27 |
typedef struct result_t result_t; // either int or float |
| 28 |
// result structure type definition for int |
| 29 |
struct result_int_t { |
| 30 |
int flags; // Expression flags |
| 31 |
intval_t intval; // Expression value |
| 32 |
}; |
| 33 |
typedef struct result_int_t result_int_t; // always int, never float |
| 34 |
|
| 35 |
|
| 36 |
// Debugging flag, should be undefined in release version |
| 37 |
// #define FDEBUG |
| 38 |
|
| 39 |
// Maximum nesting depth of "!src" and macro calls |
| 40 |
// Is not actually a limitation, but a means of finding recursions |
| 41 |
#define MAX_NESTING 64 |
| 42 |
// Default value for output buffer |
| 43 |
#define FILLVALUE_INITIAL 0 |
| 44 |
// Default value for "!fill" |
| 45 |
#define FILLVALUE_FILL 0 |
| 46 |
|
| 47 |
// Nullpointer definition |
| 48 |
#ifndef NULL |
| 49 |
#define NULL ((void *)0) |
| 50 |
#endif |
| 51 |
// Boolean values |
| 52 |
#ifndef FALSE |
| 53 |
typedef int bool; |
| 54 |
#define FALSE 0 |
| 55 |
#define TRUE 1 |
| 56 |
#endif |
| 57 |
|
| 58 |
|
| 59 |
#endif |