summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/dragon.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-08-21 10:41:19 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-08-21 10:41:19 +0000
commit7285b359d259b2ae0fdf85096571c386ec8c991a (patch)
treea027aff57f1a255f9ec6cfd3b68cabe4b6683998 /src/mess/includes/dragon.h
parent67c425e90757876a6716b7867df30c0149912e74 (diff)
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/dragon.h')
-rw-r--r--src/mess/includes/dragon.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/mess/includes/dragon.h b/src/mess/includes/dragon.h
new file mode 100644
index 00000000000..849bf87dbeb
--- /dev/null
+++ b/src/mess/includes/dragon.h
@@ -0,0 +1,62 @@
+/***************************************************************************
+
+ 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);
+
+ 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);
+
+ 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__ */