|
// M6502 options |
|
|
#define EXEC6502 1 |
|
|
#define DEBUG 1 |
|
|
|
|
1 |
// make perlxsi.c happy |
// make perlxsi.c happy |
2 |
EXTERN_C void xs_init (pTHX); |
EXTERN_C void xs_init (pTHX); |
3 |
|
|
4 |
// which module to bootstrap |
// which module to bootstrap |
5 |
#define EMU_START "use Arch;" |
#define EMU_START "use blib; use Arch;" |
6 |
|
|
7 |
// do we want to dump our C debug? |
// do we want to dump our C debug? |
8 |
//#define DEBUGF 1 |
#define DEBUGF 1 |
9 |
|
|
10 |
|
// do we wont to dump registars? |
11 |
|
#define DUMP_R 1 |
12 |
|
|
13 |
|
#if DEBUGF |
14 |
|
#define debugf(x) do { \ |
15 |
|
PerlIO_stdoutf("#> "); \ |
16 |
|
PerlIO_stdoutf x ; \ |
17 |
|
PerlIO_stdoutf("\n"); \ |
18 |
|
} while (0) |
19 |
|
#else |
20 |
|
#define debugf(x) |
21 |
|
#endif |
22 |
|
|
23 |
|
#if 1 |
24 |
|
#define dump_R printf("# PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", R->PC.W, R->A, R->P, R->X, R->Y, R->S ); |
25 |
|
#else |
26 |
|
#define dump_R |
27 |
|
#endif |
28 |
|
|