/[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 80 by dpavlin, Wed Aug 1 15:34:43 2007 UTC revision 86 by dpavlin, Wed Aug 1 22:25:37 2007 UTC
# Line 5  EXTERN_C void xs_init (pTHX); Line 5  EXTERN_C void xs_init (pTHX);
5  #define EMU_START "use blib; 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?  // do we wont to dump registars?
11  //#define DUMP_R 1  #define DUMP_R 1
12    
13    void push_R(void);
14    void pull_R(void);
15    
16    #if DEBUGF
17    #define debugf(x)  do {         \
18            PerlIO_stdoutf("#> ");  \
19            PerlIO_stdoutf x ;      \
20            PerlIO_stdoutf("\n");   \
21    } while (0)
22    #else
23    #define debugf(x)
24    #endif
25    
26    #if 1
27    #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 );
28    #else
29    #define dump_R
30    #endif
31    

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

  ViewVC Help
Powered by ViewVC 1.1.26