blob: 638e80554b85eddce1267396114382e200d11d08 (
plain) (
tree)
|
|
#pragma once
#ifndef __MPF1__
#define __MPF1__
#include "emu.h"
#include "audio/spchroms.h"
#include "cpu/z80/z80.h"
#include "cpu/z80/z80daisy.h"
#include "imagedev/cassette.h"
#include "machine/i8255.h"
#include "machine/z80ctc.h"
#include "machine/z80pio.h"
#include "machine/z80sio.h"
#include "sound/speaker.h"
#include "sound/tms5220.h"
#define Z80_TAG "u1"
#define Z80CTC_TAG "u11"
#define Z80PIO_TAG "u10"
#define I8255A_TAG "u14"
#define TMS5220_TAG "tms5220"
class mpf1_state : public driver_device
{
public:
mpf1_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, Z80_TAG),
m_ctc(*this, Z80CTC_TAG),
m_speaker(*this, SPEAKER_TAG),
m_cassette(*this, CASSETTE_TAG)
{ }
required_device<cpu_device> m_maincpu;
required_device<z80ctc_device> m_ctc;
required_device<device_t> m_speaker;
required_device<cassette_image_device> m_cassette;
virtual void machine_start();
virtual void machine_reset();
DECLARE_READ8_MEMBER( ppi_pa_r );
DECLARE_WRITE8_MEMBER( ppi_pb_w );
DECLARE_WRITE8_MEMBER( ppi_pc_w );
DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
DECLARE_INPUT_CHANGED_MEMBER( trigger_irq );
DECLARE_DIRECT_UPDATE_MEMBER(mpf1_direct_update_handler);
int m_break;
int m_m1;
UINT8 m_lednum;
emu_timer *m_led_refresh_timer;
DECLARE_DRIVER_INIT(mpf1);
};
#endif
|