1 // license:BSD-3-Clause 2 // copyright-holders:Curt Coder 3 /********************************************************************** 4 5 Personal Peripheral Products Speakeasy 64 cartridge emulation 6 7 **********************************************************************/ 8 9 #ifndef MAME_BUS_C64_SPEAKEASY_H 10 #define MAME_BUS_C64_SPEAKEASY_H 11 12 #pragma once 13 14 #include "exp.h" 15 #include "sound/votrax.h" 16 17 18 19 //************************************************************************** 20 // TYPE DEFINITIONS 21 //************************************************************************** 22 23 // ======================> c64_speakeasy_cartridge_device 24 25 class c64_speakeasy_cartridge_device : public device_t, public device_c64_expansion_card_interface 26 { 27 public: 28 // construction/destruction 29 c64_speakeasy_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); 30 31 protected: 32 // device-level overrides 33 virtual void device_start() override; 34 35 // optional information overrides 36 virtual void device_add_mconfig(machine_config &config) override; 37 38 // device_c64_expansion_card_interface overrides 39 virtual uint8_t c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; 40 virtual void c64_cd_w(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) override; 41 42 private: 43 required_device<votrax_sc01_device> m_votrax; 44 }; 45 46 47 // device type definition 48 DECLARE_DEVICE_TYPE(C64_SPEAKEASY, c64_speakeasy_cartridge_device) 49 50 51 #endif // MAME_BUS_C64_SPEAKEASY_H 52