mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
63 lines
1.8 KiB
C++
63 lines
1.8 KiB
C++
/**********************************************************************
|
|
|
|
Commodore Plus/4 SID cartridge emulation
|
|
|
|
Copyright MESS Team.
|
|
Visit http://mamedev.org for licensing and usage restrictions.
|
|
|
|
**********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __PLUS4_SID_CARTRIDGE__
|
|
#define __PLUS4_SID_CARTRIDGE__
|
|
|
|
|
|
#include "emu.h"
|
|
#include "machine/plus4exp.h"
|
|
#include "sound/dac.h"
|
|
#include "sound/mos6581.h"
|
|
#include "machine/cbmipt.h"
|
|
#include "machine/vcsctrl.h"
|
|
|
|
|
|
|
|
//**************************************************************************
|
|
// TYPE DEFINITIONS
|
|
//**************************************************************************
|
|
|
|
// ======================> plus4_sid_cartridge_device
|
|
|
|
class plus4_sid_cartridge_device : public device_t,
|
|
public device_plus4_expansion_card_interface
|
|
{
|
|
public:
|
|
// construction/destruction
|
|
plus4_sid_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
|
|
|
// optional information overrides
|
|
virtual const rom_entry *device_rom_region() const;
|
|
virtual machine_config_constructor device_mconfig_additions() const;
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual void device_start();
|
|
virtual void device_reset();
|
|
|
|
// device_plus4_expansion_card_interface overrides
|
|
virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
|
|
virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
|
|
virtual void plus4_breset_w(int state);
|
|
|
|
private:
|
|
required_device<mos6581_device> m_sid;
|
|
required_device<vcs_control_port_device> m_joy;
|
|
};
|
|
|
|
|
|
// device type definition
|
|
extern const device_type PLUS4_SID;
|
|
|
|
|
|
#endif
|