Go to the documentation of this file.
31 #define STARSCREAM_CONTEXTINFO_MEM16 \
32 struct STARSCREAM_PROGRAMREGION *fetch; \
33 struct STARSCREAM_DATAREGION *readbyte; \
34 struct STARSCREAM_DATAREGION *readword; \
35 struct STARSCREAM_DATAREGION *writebyte; \
36 struct STARSCREAM_DATAREGION *writeword; \
37 struct STARSCREAM_PROGRAMREGION *s_fetch; \
38 struct STARSCREAM_DATAREGION *s_readbyte; \
39 struct STARSCREAM_DATAREGION *s_readword; \
40 struct STARSCREAM_DATAREGION *s_writebyte; \
41 struct STARSCREAM_DATAREGION *s_writeword; \
42 struct STARSCREAM_PROGRAMREGION *u_fetch; \
43 struct STARSCREAM_DATAREGION *u_readbyte; \
44 struct STARSCREAM_DATAREGION *u_readword; \
45 struct STARSCREAM_DATAREGION *u_writebyte; \
46 struct STARSCREAM_DATAREGION *u_writeword; \
49 #define STARSCREAM_CONTEXTINFO_MEM16FC \
50 unsigned (*f_readbyte) (unsigned f, unsigned a); \
51 unsigned (*f_readword) (unsigned f, unsigned a); \
52 unsigned (*f_writebyte)(unsigned f, unsigned a); \
53 unsigned (*f_writeword)(unsigned f, unsigned a); \
56 #define STARSCREAM_CONTEXTINFO_MEM32 \
57 struct STARSCREAM_PROGRAMREGION *fetch; \
58 struct STARSCREAM_DATAREGION *readbus; \
59 struct STARSCREAM_DATAREGION *writebus; \
60 struct STARSCREAM_PROGRAMREGION *s_fetch; \
61 struct STARSCREAM_DATAREGION *s_readbus; \
62 struct STARSCREAM_DATAREGION *s_writebus; \
63 struct STARSCREAM_PROGRAMREGION *u_fetch; \
64 struct STARSCREAM_DATAREGION *u_readbus; \
65 struct STARSCREAM_DATAREGION *u_writebus; \
66 unsigned (*f_readbus) (unsigned f, unsigned a); \
67 unsigned (*f_writebus)(unsigned f, unsigned a); \
70 #define STARSCREAM_CONTEXTINFO_COMMON \
71 void (*resethandler)(void); \
72 void (*inthandler)(void); \
78 unsigned char interrupts[8]; \
82 #define STARSCREAM_CONTEXTINFO_68000SPECIFIC \
83 unsigned short contextfiller00; \
86 #define STARSCREAM_CONTEXTINFO_68010 \
90 void (*bkpthandler)(void); \
93 #define STARSCREAM_CONTEXTINFO_68010SPECIFIC \
94 unsigned char loopmode; \
95 unsigned char contextfiller10[3]; \
98 #define STARSCREAM_CONTEXTINFO_68020 \
122 #define STARSCREAM_IDENTIFIERS(SNC,SN) \
124 extern struct SNC##CONTEXT SN##context; \
126 int SN##init (void); \
127 unsigned SN##reset (void); \
128 unsigned SN##exec (int n); \
129 int SN##interrupt (int level, int vector); \
130 void SN##flushInterrupts (void); \
131 int SN##GetContextSize (void); \
132 void SN##GetContext (void *context); \
133 void SN##SetContext (void *context); \
134 int SN##fetch (unsigned address); \
135 unsigned SN##readOdometer (void); \
136 unsigned SN##tripOdometer (void); \
137 unsigned SN##controlOdometer (int n); \
138 void SN##releaseTimeslice (void); \
139 unsigned SN##readPC (void); \