summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes
diff options
context:
space:
mode:
author Felipe CorrĂȘa da Silva Sanches <fsanches@metamaquina.com.br>2015-09-26 00:47:09 -0300
committer Felipe CorrĂȘa da Silva Sanches <fsanches@metamaquina.com.br>2015-09-27 01:56:18 -0300
commit88ab4da61c71b40b67b5ad9518e4a9be1e87814c (patch)
tree90199bd92d8ffbad18a82f282ce2fa39a97fa0bc /src/mess/includes
parent4d391b1a0477e7aca9806c900bf06bfa90fe8b01 (diff)
new driver: ZAP - Z80 Applications Processor - based on the book "Build Your Own Z80 Microcomputer" by Steve Ciarcia (1981)
Diffstat (limited to 'src/mess/includes')
-rw-r--r--src/mess/includes/zapcomputer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mess/includes/zapcomputer.h b/src/mess/includes/zapcomputer.h
new file mode 100644
index 00000000000..fef411e7d10
--- /dev/null
+++ b/src/mess/includes/zapcomputer.h
@@ -0,0 +1,30 @@
+// license:GPL2+
+// copyright-holders:FelipeSanches
+/*****************************************************************************
+ *
+ * includes/zapcomputer.h
+ *
+ ****************************************************************************/
+
+#ifndef __ZAPCOMPUTER__
+#define __ZAPCOMPUTER__
+
+#include "emu.h"
+#include "cpu/z80/z80.h"
+
+class zapcomp_state : public driver_device
+{
+public:
+ zapcomp_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
+ m_maincpu(*this, "maincpu")
+ { }
+
+ required_device<cpu_device> m_maincpu;
+ DECLARE_READ8_MEMBER(keyboard_r);
+ DECLARE_WRITE8_MEMBER(display_7seg_w);
+
+ virtual void machine_start();
+};
+
+#endif // __ZAPCOMPUTER__