mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#ifndef __TVC_HBF_H__
|
|
#define __TVC_HBF_H__
|
|
|
|
#include "emu.h"
|
|
#include "machine/tvcexp.h"
|
|
#include "machine/wd_fdc.h"
|
|
#include "formats/tvc_dsk.h"
|
|
|
|
|
|
//**************************************************************************
|
|
// TYPE DEFINITIONS
|
|
//**************************************************************************
|
|
|
|
// ======================> tvc_hbf_device
|
|
|
|
class tvc_hbf_device :
|
|
public device_t,
|
|
public device_tvcexp_interface
|
|
{
|
|
public:
|
|
// construction/destruction
|
|
tvc_hbf_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 const rom_entry *device_rom_region() const;
|
|
|
|
DECLARE_FLOPPY_FORMATS( floppy_formats );
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual void device_start();
|
|
virtual void device_reset();
|
|
|
|
// tvcexp_interface overrides
|
|
virtual UINT8 id_r() { return 0x02; } // ID_A to GND, ID_B to VCC
|
|
virtual DECLARE_READ8_MEMBER(read);
|
|
virtual DECLARE_WRITE8_MEMBER(write);
|
|
virtual DECLARE_READ8_MEMBER(io_read);
|
|
virtual DECLARE_WRITE8_MEMBER(io_write);
|
|
|
|
private:
|
|
// internal state
|
|
required_device<fd1793_t> m_fdc;
|
|
|
|
UINT8 * m_rom;
|
|
UINT8 * m_ram;
|
|
UINT8 m_rom_bank; // A12 and A13
|
|
};
|
|
|
|
|
|
// device type definition
|
|
extern const device_type TVC_HBF;
|
|
|
|
#endif /* __TVC_HBF_H__ */
|