diff options
author | 2015-09-26 00:47:09 -0300 | |
---|---|---|
committer | 2015-09-27 01:56:18 -0300 | |
commit | 88ab4da61c71b40b67b5ad9518e4a9be1e87814c (patch) | |
tree | 90199bd92d8ffbad18a82f282ce2fa39a97fa0bc /src/mess/includes | |
parent | 4d391b1a0477e7aca9806c900bf06bfa90fe8b01 (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.h | 30 |
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__ |