diff options
Diffstat (limited to 'src/emu/cpu/ccpu/ccpu.h')
-rw-r--r-- | src/emu/cpu/ccpu/ccpu.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/emu/cpu/ccpu/ccpu.h b/src/emu/cpu/ccpu/ccpu.h new file mode 100644 index 00000000000..6b53f3e7545 --- /dev/null +++ b/src/emu/cpu/ccpu/ccpu.h @@ -0,0 +1,57 @@ +/*************************************************************************** + + ccpu.h + Core implementation for the portable Cinematronics CPU emulator. + + Written by Aaron Giles + Special thanks to Zonn Moore for his detailed documentation. + +***************************************************************************/ + +#ifndef _CCPU_H_ +#define _CCPU_H_ + +#include "cpuintrf.h" + +/*************************************************************************** + REGISTER ENUMERATION +***************************************************************************/ + +enum +{ + CCPU_PC=1, + CCPU_FLAGS, + CCPU_A, + CCPU_B, + CCPU_I, + CCPU_J, + CCPU_P, + CCPU_X, + CCPU_Y, + CCPU_T +}; + + +/*************************************************************************** + CONFIG STRUCTURE +***************************************************************************/ + +struct CCPUConfig +{ + UINT8 (*external_input)(void); /* if NULL, assume JMI jumper is present */ + void (*vector_callback)(INT16 sx, INT16 sy, INT16 ex, INT16 ey, UINT8 shift); + UINT8 scrnum; +}; + + +/*************************************************************************** + PUBLIC FUNCTIONS +***************************************************************************/ + +void ccpu_get_info(UINT32 state, cpuinfo *info); + +#ifdef MAME_DEBUG +offs_t ccpu_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); +#endif + +#endif |