/[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

Diff of /M6502/config.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 86 by dpavlin, Wed Aug 1 22:25:37 2007 UTC revision 87 by dpavlin, Thu Aug 2 11:08:10 2007 UTC
# Line 8  EXTERN_C void xs_init (pTHX); Line 8  EXTERN_C void xs_init (pTHX);
8  #define DEBUGF 1  #define DEBUGF 1
9    
10  // do we wont to dump registars?  // do we wont to dump registars?
11  #define DUMP_R 1  //#define DUMP_R 1
12    
13  void push_R(void);  void push_R(void);
14  void pull_R(void);  void pull_R(void);
15    
16    extern int debug;
17    
18  #if DEBUGF  #if DEBUGF
19  #define debugf(x)  do {         \  #define debugf(x)  do { \
20          PerlIO_stdoutf("#> ");  \          if (debug) { \
21          PerlIO_stdoutf x ;      \                  PerlIO_stdoutf("#> "); \
22          PerlIO_stdoutf("\n");   \                  PerlIO_stdoutf x ; \
23                    PerlIO_stdoutf("\n"); \
24            } \
25  } while (0)  } while (0)
26  #else  #else
27  #define debugf(x)  #define debugf(x)
28  #endif  #endif
29    
30  #if 1  #if 1
31  #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 );  #define dump_R do { \
32            if (debug) { \
33                    printf("#> PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", \
34                            R->PC.W, R->A, R->P, R->X, R->Y, R->S ); \
35            } \
36    } while (0)
37  #else  #else
38  #define dump_R  #define dump_R
39  #endif  #endif

Legend:
Removed from v.86  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.26