blob: fda08caebb8535fcfd8c2a98a0c152190f3eca5f (
plain) (
tree)
|
|
/***************************************************************************
dragon.h
Dragon Family
***************************************************************************/
#pragma once
#ifndef __DRAGON__
#define __DRAGON__
#include "includes/coco12.h"
#include "imagedev/printer.h"
#include "machine/6551acia.h"
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
#define PRINTER_TAG "printer"
#define ACIA_TAG "acia"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class dragon_state : public coco12_state
{
public:
dragon_state(const machine_config &mconfig, device_type type, const char *tag)
: coco12_state(mconfig, type, tag),
m_printer(*this, PRINTER_TAG)
{
}
required_device<printer_image_device> m_printer;
protected:
virtual void pia1_pa_changed(void);
};
/* dragon64 has an ACIA chip */
class dragon64_state : public dragon_state
{
public:
dragon64_state(const machine_config &mconfig, device_type type, const char *tag)
: dragon_state(mconfig, type, tag),
m_acia(*this, ACIA_TAG)
{
}
required_device<acia6551_device> m_acia;
protected:
virtual DECLARE_READ8_MEMBER( ff00_read );
virtual DECLARE_WRITE8_MEMBER( ff00_write );
virtual void pia1_pb_changed(void);
void page_rom(bool romswitch);
};
#endif /* __DRAGON__ */
|