summaryrefslogblamecommitdiffstatshomepage
path: root/src/devices/bus/cpc/amdrum.h
blob: f9efb5ce41174c89ca6efde410acdb29d201ab26 (plain) (tree)
1
2

                                   














                                                                  



                                           
                                                                                                  


                                   
                                                                                                           

                                         
                                                                                     



                                     

                                             



                                          
                                                  






                                    
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
 * amdrum.h
 *
 *  Created on: 23/08/2014
 *
 *  Cheetah Marketing Amdrum
 *
 *  I/O FFxx - 8-bit unsigned DAC, write only  (Ferranti ZN428E-8)
 *  Lower 8 address bits are not decoded.
 *
 */

#ifndef AMDRUM_H_
#define AMDRUM_H_

#include "cpcexp.h"
#include "sound/dac.h"

class cpc_amdrum_device  : public device_t,
							public device_cpc_expansion_card_interface
{
public:
	// construction/destruction
	cpc_amdrum_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	// optional information overrides
	virtual machine_config_constructor device_mconfig_additions() const override;

	DECLARE_WRITE8_MEMBER(dac_w);
protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_reset() override;

private:
	cpc_expansion_slot_device *m_slot;

	required_device<dac_byte_interface> m_dac;
};

// device type definition
extern const device_type CPC_AMDRUM;


#endif /* AMDRUM_H_ */