DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros
starcpu.h File Reference

Go to the source code of this file.

Classes

struct  STARSCREAM_PROGRAMREGION
struct  STARSCREAM_DATAREGION
struct  S68000CONTEXT
struct  S68010CONTEXT
struct  S68020CONTEXT

Macros

#define STARSCREAM_CONTEXTINFO_MEM16
#define STARSCREAM_CONTEXTINFO_MEM16FC
#define STARSCREAM_CONTEXTINFO_MEM32
#define STARSCREAM_CONTEXTINFO_COMMON
#define STARSCREAM_CONTEXTINFO_68000SPECIFIC   unsigned short contextfiller00; \
#define STARSCREAM_CONTEXTINFO_68010
#define STARSCREAM_CONTEXTINFO_68010SPECIFIC
#define STARSCREAM_CONTEXTINFO_68020   unsigned asp2; \
#define STARSCREAM_IDENTIFIERS(SNC, SN)

Macro Definition Documentation

#define STARSCREAM_CONTEXTINFO_68000SPECIFIC   unsigned short contextfiller00; \
#define STARSCREAM_CONTEXTINFO_68010
Value:
unsigned char sfc; \
unsigned char dfc; \
unsigned vbr; \
void (*bkpthandler)(void); \
#define STARSCREAM_CONTEXTINFO_68010SPECIFIC
Value:
unsigned char loopmode; \
unsigned char contextfiller10[3]; \
#define STARSCREAM_CONTEXTINFO_68020   unsigned asp2; \
#define STARSCREAM_CONTEXTINFO_COMMON
Value:
void (*resethandler)(void); \
void (*inthandler)(void); \
unsigned dreg[8]; \
unsigned areg[8]; \
unsigned asp; \
unsigned pc; \
unsigned odometer; \
unsigned char interrupts[8]; \
unsigned short sr; \
#define STARSCREAM_CONTEXTINFO_MEM16
Value:
struct STARSCREAM_DATAREGION *readbyte; \
struct STARSCREAM_DATAREGION *readword; \
struct STARSCREAM_DATAREGION *writebyte; \
struct STARSCREAM_DATAREGION *writeword; \
struct STARSCREAM_PROGRAMREGION *s_fetch; \
struct STARSCREAM_DATAREGION *s_readbyte; \
struct STARSCREAM_DATAREGION *s_readword; \
struct STARSCREAM_DATAREGION *s_writebyte; \
struct STARSCREAM_DATAREGION *s_writeword; \
struct STARSCREAM_PROGRAMREGION *u_fetch; \
struct STARSCREAM_DATAREGION *u_readbyte; \
struct STARSCREAM_DATAREGION *u_readword; \
struct STARSCREAM_DATAREGION *u_writebyte; \
struct STARSCREAM_DATAREGION *u_writeword; \
#define STARSCREAM_CONTEXTINFO_MEM16FC
Value:
unsigned (*f_readbyte) (unsigned f, unsigned a); \
unsigned (*f_readword) (unsigned f, unsigned a); \
unsigned (*f_writebyte)(unsigned f, unsigned a); \
unsigned (*f_writeword)(unsigned f, unsigned a); \
#define STARSCREAM_CONTEXTINFO_MEM32
Value:
struct STARSCREAM_DATAREGION *readbus; \
struct STARSCREAM_DATAREGION *writebus; \
struct STARSCREAM_PROGRAMREGION *s_fetch; \
struct STARSCREAM_DATAREGION *s_readbus; \
struct STARSCREAM_DATAREGION *s_writebus; \
struct STARSCREAM_PROGRAMREGION *u_fetch; \
struct STARSCREAM_DATAREGION *u_readbus; \
struct STARSCREAM_DATAREGION *u_writebus; \
unsigned (*f_readbus) (unsigned f, unsigned a); \
unsigned (*f_writebus)(unsigned f, unsigned a); \
#define STARSCREAM_IDENTIFIERS (   SNC,
  SN 
)
Value:
\
extern struct SNC##CONTEXT SN##context; \
\
int SN##init (void); \
unsigned SN##reset (void); \
unsigned SN##exec (int n); \
int SN##interrupt (int level, int vector); \
void SN##flushInterrupts (void); \
int SN##GetContextSize (void); \
void SN##GetContext (void *context); \
void SN##SetContext (void *context); \
int SN##fetch (unsigned address); \
unsigned SN##readOdometer (void); \
unsigned SN##tripOdometer (void); \
unsigned SN##controlOdometer (int n); \
void SN##releaseTimeslice (void); \
unsigned SN##readPC (void); \