/[VRac]/M6502/config.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /M6502/config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 108 - (hide annotations)
Fri Aug 3 09:18:08 2007 UTC (16 years, 10 months ago) by dpavlin
File MIME type: text/plain
File size: 623 byte(s)
rename MEM_SIZE to CACHE_SIZE to prevent clush with perl include
1 dpavlin 29 // make perlxsi.c happy
2     EXTERN_C void xs_init (pTHX);
3 dpavlin 30
4 dpavlin 33 // do we want to dump our C debug?
5 dpavlin 81 #define DEBUGF 1
6 dpavlin 34
7 dpavlin 36 // do we wont to dump registars?
8 dpavlin 87 //#define DUMP_R 1
9 dpavlin 39
10 dpavlin 108 #define CACHE_SIZE 0xffff
11 dpavlin 100
12 dpavlin 86 void push_R(void);
13     void pull_R(void);
14    
15 dpavlin 87 extern int debug;
16    
17 dpavlin 82 #if DEBUGF
18 dpavlin 87 #define debugf(x) do { \
19     if (debug) { \
20     PerlIO_stdoutf("#> "); \
21     PerlIO_stdoutf x ; \
22     PerlIO_stdoutf("\n"); \
23     } \
24 dpavlin 82 } while (0)
25     #else
26     #define debugf(x)
27     #endif
28    
29     #if 1
30 dpavlin 87 #define dump_R do { \
31     if (debug) { \
32     printf("#> PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", \
33     R->PC.W, R->A, R->P, R->X, R->Y, R->S ); \
34     } \
35     } while (0)
36 dpavlin 82 #else
37     #define dump_R
38     #endif
39    

  ViewVC Help
Powered by ViewVC 1.1.26