mirror of
https://github.com/holub/mame
synced 2025-06-04 11:56:28 +03:00
66 lines
1.7 KiB
C++
66 lines
1.7 KiB
C++
/***************************************************************************
|
|
|
|
Template for skeleton device
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#pragma once
|
|
|
|
#ifndef __PC9801_26DEV_H__
|
|
#define __PC9801_26DEV_H__
|
|
|
|
#include "machine/pic8259.h"
|
|
#include "sound/2203intf.h"
|
|
|
|
|
|
//**************************************************************************
|
|
// TYPE DEFINITIONS
|
|
//**************************************************************************
|
|
|
|
// ======================> pc9801_26_device
|
|
|
|
class pc9801_26_device : public device_t
|
|
{
|
|
public:
|
|
// construction/destruction
|
|
pc9801_26_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
|
|
|
// optional information overrides
|
|
virtual machine_config_constructor device_mconfig_additions() const;
|
|
virtual ioport_constructor device_input_ports() const;
|
|
|
|
DECLARE_READ8_MEMBER(opn_porta_r);
|
|
DECLARE_WRITE8_MEMBER(opn_portb_w);
|
|
DECLARE_READ8_MEMBER(pc9801_26_r);
|
|
DECLARE_WRITE8_MEMBER(pc9801_26_w);
|
|
DECLARE_WRITE_LINE_MEMBER(pc9801_sound_irq);
|
|
|
|
// required_device<cpu_device> m_maincpu;
|
|
required_device<ym2203_device> m_opn;
|
|
protected:
|
|
// device-level overrides
|
|
virtual void device_validity_check(validity_checker &valid) const;
|
|
virtual void device_start();
|
|
virtual void device_reset();
|
|
void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler);
|
|
|
|
private:
|
|
UINT8 m_joy_sel;
|
|
|
|
};
|
|
|
|
|
|
// device type definition
|
|
extern const device_type PC9801_26;
|
|
|
|
|
|
|
|
//**************************************************************************
|
|
// GLOBAL VARIABLES
|
|
//**************************************************************************
|
|
|
|
|
|
|
|
#endif
|