/[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 195 - (hide annotations)
Sun Apr 13 00:32:39 2008 UTC (16 years ago) by dpavlin
File MIME type: text/plain
File size: 596 byte(s)
a try at implementing selectable callbacks to perl for read/write operations
as opposed to whole memory
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 86 void push_R(void);
11     void pull_R(void);
12    
13 dpavlin 87 extern int debug;
14    
15 dpavlin 82 #if DEBUGF
16 dpavlin 87 #define debugf(x) do { \
17     if (debug) { \
18     PerlIO_stdoutf("#> "); \
19     PerlIO_stdoutf x ; \
20     PerlIO_stdoutf("\n"); \
21     } \
22 dpavlin 82 } while (0)
23     #else
24     #define debugf(x)
25     #endif
26    
27     #if 1
28 dpavlin 87 #define dump_R do { \
29     if (debug) { \
30     printf("#> PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", \
31     R->PC.W, R->A, R->P, R->X, R->Y, R->S ); \
32     } \
33     } while (0)
34 dpavlin 82 #else
35     #define dump_R
36     #endif
37    

  ViewVC Help
Powered by ViewVC 1.1.26