diff options
author | David Haywood <mamehaze@users.noreply.github.com> | 2016-12-23 22:40:24 +0000 |
---|---|---|
committer | David Haywood <mamehaze@users.noreply.github.com> | 2016-12-23 22:40:24 +0000 |
commit | 2f70608fa91c18c68abd239f8d468e5a03b9ca00 (patch) | |
tree | 6a8525b3ed79e8418475a9a0f889df457725e62e /src/mame/machine/midwayic.h | |
parent | aaff5c704783fae18edac646f2d242a66439013a (diff) |
decapped and read out security pics for umk3 and rmpgwt [Caps0ff]
I've added a new device type and bare bones loading of them so you can see the code running however the communication with the main CPU is not hooked up yet so they still fallback to the simulation code.
also made nbamht a parent, because the nbamht / nbahangt situation really isn't too different to the umk3 / mk3 or sf2ce / sf2 situations, it's a distinct new release.
Diffstat (limited to 'src/mame/machine/midwayic.h')
-rw-r--r-- | src/mame/machine/midwayic.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/mame/machine/midwayic.h b/src/mame/machine/midwayic.h index a10a0a93e0d..ddca0ab843d 100644 --- a/src/mame/machine/midwayic.h +++ b/src/mame/machine/midwayic.h @@ -11,8 +11,9 @@ #include "audio/cage.h" #include "audio/dcs.h" +#include "cpu/pic16c5x/pic16c5x.h" -/* 1st generation Midway serial PIC */ +/* 1st generation Midway serial PIC - simulation*/ class midway_serial_pic_device : public device_t { @@ -52,6 +53,41 @@ extern const device_type MIDWAY_SERIAL_PIC; #define MCFG_MIDWAY_SERIAL_PIC_UPPER(_upper) \ midway_serial_pic_device::static_set_upper(*device, _upper); +/* 1st generation Midway serial PIC - emulation */ + +class midway_serial_pic_emu_device : public device_t +{ +public: + // construction/destruction + midway_serial_pic_emu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + midway_serial_pic_emu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source); + + DECLARE_READ_LINE_MEMBER(PIC16C5X_T0_clk_r); + DECLARE_READ8_MEMBER(read_a); + DECLARE_READ8_MEMBER(read_b); + DECLARE_READ8_MEMBER(read_c); + DECLARE_WRITE8_MEMBER(write_a); + DECLARE_WRITE8_MEMBER(write_b); + DECLARE_WRITE8_MEMBER(write_c); + + + + +protected: + // device-level overrides + virtual machine_config_constructor device_mconfig_additions() const override; + virtual void device_start() override; + +private: + +}; + + +// device type definition +extern const device_type MIDWAY_SERIAL_PIC_EMU; + + + /* 2nd generation Midway serial/NVRAM/RTC PIC */ // ======================> midway_serial_pic2_device |