diff options
Diffstat (limited to 'trunk/src/emu/cpu/mb88xx/mb88xx.h')
-rw-r--r-- | trunk/src/emu/cpu/mb88xx/mb88xx.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/trunk/src/emu/cpu/mb88xx/mb88xx.h b/trunk/src/emu/cpu/mb88xx/mb88xx.h new file mode 100644 index 00000000000..053806918f7 --- /dev/null +++ b/trunk/src/emu/cpu/mb88xx/mb88xx.h @@ -0,0 +1,77 @@ +/*************************************************************************** + + mb88xx.h + Core implementation for the portable Fujitsu MB88xx series MCU emulator. + + Written by Ernesto Corvi + +***************************************************************************/ + +#pragma once + +#ifndef __MB88XX_H__ +#define __MB88XX_H__ + + +/*************************************************************************** + PORT ENUMERATION +***************************************************************************/ + +enum +{ + MB88_PORTK = 0, /* input only, 4 bits */ + MB88_PORTO, /* output only, PLA function output */ + MB88_PORTP, /* 4 bits */ + MB88_PORTR0, /* R0-R3, 4 bits */ + MB88_PORTR1, /* R4-R7, 4 bits */ + MB88_PORTR2, /* R8-R11, 4 bits */ + MB88_PORTR3, /* R12-R15, 4 bits */ + MB88_PORTSI /* SI, 1 bit */ +}; + +/*************************************************************************** + REGISTER ENUMERATION +***************************************************************************/ + +enum +{ + MB88_PC=1, + MB88_PA, + MB88_FLAGS, + MB88_SI, + MB88_A, + MB88_X, + MB88_Y, + MB88_PIO, + MB88_TH, + MB88_TL, + MB88_SB +}; + +#define MB88_IRQ_LINE 0 + +/*************************************************************************** + CONFIG STRUCTURE +***************************************************************************/ + +typedef struct _mb88_cpu_core mb88_cpu_core; +struct _mb88_cpu_core +{ + UINT8 *PLA_config; /* PLA configuration (32 byte values), if NULL assume direct output */ +}; + +/*************************************************************************** + PUBLIC FUNCTIONS +***************************************************************************/ + +DECLARE_LEGACY_CPU_DEVICE(MB88, mb88); +DECLARE_LEGACY_CPU_DEVICE(MB8841, mb8841); +DECLARE_LEGACY_CPU_DEVICE(MB8842, mb8842); +DECLARE_LEGACY_CPU_DEVICE(MB8843, mb8843); +DECLARE_LEGACY_CPU_DEVICE(MB8844, mb8844); + +CPU_DISASSEMBLE( mb88 ); + +void mb88_external_clock_w(device_t *device, int state); + +#endif /* __MB88XX_H__ */ |