#ifndef __NEOGEO_PCM2_CART_H #define __NEOGEO_PCM2_CART_H #include "neogeo_slot.h" #include "banked_cart.h" #include "pcm2_prot.h" #include "cmc_prot.h" // ======================> neogeo_pcm2_cart class neogeo_pcm2_cart : public device_t, public device_neogeo_cart_interface { public: // construction/destruction neogeo_pcm2_cart(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT16 clock, const char *shortname, const char *source); neogeo_pcm2_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT16 clock); // device-level overrides virtual void device_start(); virtual void device_reset(); virtual machine_config_constructor device_mconfig_additions() const; // reading and writing virtual DECLARE_READ16_MEMBER(read_rom); virtual void activate_cart(ACTIVATE_CART_PARAMS) { m_banked_cart->install_banks(machine, maincpu, cpuregion, cpuregion_size); } virtual void decrypt_all(DECRYPT_ALL_PARAMS) {} virtual int get_fixed_bank_type(void) { return 0; } required_device m_banked_cart; required_device m_cmc_prot; required_device m_pcm2_prot; }; // device type definition extern const device_type NEOGEO_PCM2_CART; /************************************************* MSLUG4 **************************************************/ class neogeo_pcm2_mslug4_cart : public neogeo_pcm2_cart { public: neogeo_pcm2_mslug4_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); virtual void decrypt_all(DECRYPT_ALL_PARAMS); virtual int get_fixed_bank_type(void) { return 1; } }; extern const device_type NEOGEO_PCM2_MSLUG4_CART; class neogeo_pcm2_ms4plus_cart : public neogeo_pcm2_cart { public: neogeo_pcm2_ms4plus_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); virtual void decrypt_all(DECRYPT_ALL_PARAMS); virtual int get_fixed_bank_type(void) { return 0; } }; extern const device_type NEOGEO_PCM2_MS4PLUS_CART; /************************************************* ROTD **************************************************/ class neogeo_pcm2_rotd_cart : public neogeo_pcm2_cart { public: neogeo_pcm2_rotd_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); virtual void decrypt_all(DECRYPT_ALL_PARAMS); virtual int get_fixed_bank_type(void) { return 1; } }; extern const device_type NEOGEO_PCM2_ROTD_CART; /************************************************* PNYAA **************************************************/ class neogeo_pcm2_pnyaa_cart : public neogeo_pcm2_cart { public: neogeo_pcm2_pnyaa_cart(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); virtual void decrypt_all(DECRYPT_ALL_PARAMS); virtual int get_fixed_bank_type(void) { return 1; } }; extern const device_type NEOGEO_PCM2_PNYAA_CART; #endif