diff options
author | 2014-03-17 22:06:26 +0000 | |
---|---|---|
committer | 2014-03-17 22:06:26 +0000 | |
commit | 4bba3f6e421184a50d035b33c04e7fef98160809 (patch) | |
tree | ec1ca778b330d7ce4c5a2c310e0eae8502e9e9d5 /src/emu/bus/pce/pce_rom.h | |
parent | f3fe1ab6443027aef68590c7391b43dea0580c06 (diff) |
(MESS) Moved the remaining slot interfaces to emu/bus. (nw)
Diffstat (limited to 'src/emu/bus/pce/pce_rom.h')
-rw-r--r-- | src/emu/bus/pce/pce_rom.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/emu/bus/pce/pce_rom.h b/src/emu/bus/pce/pce_rom.h new file mode 100644 index 00000000000..1588757b96f --- /dev/null +++ b/src/emu/bus/pce/pce_rom.h @@ -0,0 +1,83 @@ +#ifndef __PCE_ROM_H +#define __PCE_ROM_H + +#include "pce_slot.h" + + +// ======================> pce_rom_device + +class pce_rom_device : public device_t, + public device_pce_cart_interface +{ +public: + // construction/destruction + pce_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + pce_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // device-level overrides + virtual void device_start() {} + virtual void device_reset() {} + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_cart); +}; + +// ======================> pce_cdsys3_device + +class pce_cdsys3_device : public pce_rom_device +{ +public: + // construction/destruction + pce_cdsys3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_cart); + virtual DECLARE_WRITE8_MEMBER(write_cart); +}; + + +// ======================> pce_populous_device + +class pce_populous_device : public pce_rom_device +{ +public: + // construction/destruction + pce_populous_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_cart); + virtual DECLARE_WRITE8_MEMBER(write_cart); +}; + + +// ======================> pce_sf2_device + +class pce_sf2_device : public pce_rom_device +{ +public: + // construction/destruction + pce_sf2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_cart); + virtual DECLARE_WRITE8_MEMBER(write_cart); + +private: + UINT8 m_bank_base; +}; + + + +// device type definition +extern const device_type PCE_ROM_STD; +extern const device_type PCE_ROM_CDSYS3; +extern const device_type PCE_ROM_POPULOUS; +extern const device_type PCE_ROM_SF2; + + + +#endif |