/[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 82 by dpavlin, Wed Aug 1 21:40:17 2007 UTC revision 108 by dpavlin, Fri Aug 3 09:18:08 2007 UTC
# Line 1  Line 1 
1  // make perlxsi.c happy  // make perlxsi.c happy
2  EXTERN_C void xs_init (pTHX);  EXTERN_C void xs_init (pTHX);
3    
 // which module to bootstrap  
 #define EMU_START "use blib; use Arch;"  
   
4  // do we want to dump our C debug?  // do we want to dump our C debug?
5  #define DEBUGF 1  #define DEBUGF 1
6    
7  // do we wont to dump registars?  // do we wont to dump registars?
8  #define DUMP_R 1  //#define DUMP_R 1
9    
10    #define CACHE_SIZE 0xffff
11    
12    void push_R(void);
13    void pull_R(void);
14    
15    extern int debug;
16    
17  #if DEBUGF  #if DEBUGF
18  #define debugf(x)  do {         \  #define debugf(x)  do { \
19          PerlIO_stdoutf("#> ");  \          if (debug) { \
20          PerlIO_stdoutf x ;      \                  PerlIO_stdoutf("#> "); \
21          PerlIO_stdoutf("\n");   \                  PerlIO_stdoutf x ; \
22                    PerlIO_stdoutf("\n"); \
23            } \
24  } while (0)  } while (0)
25  #else  #else
26  #define debugf(x)  #define debugf(x)
27  #endif  #endif
28    
29  #if 1  #if 1
30  #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 { \
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  #else  #else
37  #define dump_R  #define dump_R
38  #endif  #endif

Legend:
Removed from v.82  
changed lines
  Added in v.108

  ViewVC Help
Powered by ViewVC 1.1.26