summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/poly880.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/poly880.h
parent67c425e90757876a6716b7867df30c0149912e74 (diff)
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/poly880.h')
-rw-r--r--src/mess/includes/poly880.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/mess/includes/poly880.h b/src/mess/includes/poly880.h
new file mode 100644
index 00000000000..e8000d7b4a9
--- /dev/null
+++ b/src/mess/includes/poly880.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#ifndef __POLY880__
+#define __POLY880__
+
+
+#include "emu.h"
+#include "cpu/z80/z80.h"
+#include "cpu/z80/z80daisy.h"
+#include "imagedev/cassette.h"
+#include "machine/z80pio.h"
+#include "machine/z80ctc.h"
+#include "machine/ram.h"
+
+#define SCREEN_TAG "screen"
+#define Z80_TAG "i1"
+#define Z80CTC_TAG "i4"
+#define Z80PIO1_TAG "i2"
+#define Z80PIO2_TAG "i3"
+
+class poly880_state : public driver_device
+{
+public:
+ poly880_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
+ m_maincpu(*this, Z80_TAG),
+ m_cassette(*this, CASSETTE_TAG)
+ { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<cassette_image_device> m_cassette;
+
+ virtual void machine_start();
+
+ DECLARE_WRITE8_MEMBER( cldig_w );
+ DECLARE_WRITE_LINE_MEMBER( ctc_z0_w );
+ DECLARE_WRITE_LINE_MEMBER( ctc_z1_w );
+ DECLARE_WRITE8_MEMBER( pio1_pa_w );
+ DECLARE_READ8_MEMBER( pio1_pb_r );
+ DECLARE_WRITE8_MEMBER( pio1_pb_w );
+ DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
+ DECLARE_INPUT_CHANGED_MEMBER( trigger_nmi );
+
+ void update_display();
+
+ /* display state */
+ UINT8 m_digit;
+ UINT8 m_segment;
+};
+
+#endif