diff options
Diffstat (limited to 'src/emu/cpu/cop400/cop400.h')
-rw-r--r-- | src/emu/cpu/cop400/cop400.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/emu/cpu/cop400/cop400.h b/src/emu/cpu/cop400/cop400.h new file mode 100644 index 00000000000..56b1a6012d9 --- /dev/null +++ b/src/emu/cpu/cop400/cop400.h @@ -0,0 +1,46 @@ +/************************************************************************** + * National Semiconductor COP400 Emulator * + * * + * Copyright (C) 2006 MAME Team * + **************************************************************************/ + +#ifndef _COP400_H +#define _COP400_H + +#ifndef INLINE +#define INLINE static inline +#endif + +#define COP400_CLOCK_DIVIDER 4 + +#define COP400_PORT_L 0x100 +#define COP400_PORT_G 0x101 +#define COP400_PORT_D 0x102 +#define COP400_PORT_IN 0x103 +#define COP400_PORT_SK 0x104 +#define COP400_PORT_SIO 0x105 + +enum { + COP400_PC=1, + COP400_A, + COP400_B, + COP400_C, + COP400_G, + COP400_EN, + COP400_Q, + COP400_SA, + COP400_SB, + COP400_SC, + COP400_SIO, + COP400_SKL +}; + +extern void cop410_get_info(UINT32 state, cpuinfo *info); +extern void cop420_get_info(UINT32 state, cpuinfo *info); + +#ifdef MAME_DEBUG +offs_t cop410_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); +offs_t cop420_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); +#endif /* MAME_DEBUG */ + +#endif /* _COP400_H */ |