summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/coco12.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/coco12.h
parent67c425e90757876a6716b7867df30c0149912e74 (diff)
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/coco12.h')
-rw-r--r--src/mess/includes/coco12.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/mess/includes/coco12.h b/src/mess/includes/coco12.h
new file mode 100644
index 00000000000..3b02ac5f03d
--- /dev/null
+++ b/src/mess/includes/coco12.h
@@ -0,0 +1,62 @@
+/***************************************************************************
+
+ coco12.h
+
+ TRS-80 Radio Shack Color Computer 1/2 Family
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __COCO12__
+#define __COCO12__
+
+
+#include "includes/coco.h"
+#include "machine/6883sam.h"
+#include "video/mc6847.h"
+
+
+
+//**************************************************************************
+// MACROS / CONSTANTS
+//**************************************************************************
+
+#define SAM_TAG "sam"
+#define VDG_TAG "vdg"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+class coco12_state : public coco_state
+{
+public:
+ coco12_state(const machine_config &mconfig, device_type type, const char *tag);
+
+ required_device<sam6883_device> m_sam;
+ required_device<mc6847_base_device> m_vdg;
+
+ static const mc6847_interface mc6847_config;
+ static const sam6883_interface sam6883_config;
+
+protected:
+ virtual void device_start();
+ virtual void update_cart_base(UINT8 *cart_base);
+
+ /* PIA1 */
+ virtual void pia1_pb_changed(void);
+
+private:
+ DECLARE_WRITE_LINE_MEMBER( horizontal_sync );
+ DECLARE_WRITE_LINE_MEMBER( field_sync );
+
+ DECLARE_READ8_MEMBER( sam_read );
+
+ void configure_sam(void);
+};
+
+
+#endif /* __COCO12__ */