diff options
Diffstat (limited to 'src/mame/includes/ac1.h')
-rw-r--r-- | src/mame/includes/ac1.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mame/includes/ac1.h b/src/mame/includes/ac1.h new file mode 100644 index 00000000000..b18cad87b24 --- /dev/null +++ b/src/mame/includes/ac1.h @@ -0,0 +1,48 @@ +// license:BSD-3-Clause +// copyright-holders:Miodrag Milanovic +/***************************************************************************** + * + * includes/ac1.h + * + ****************************************************************************/ + +#ifndef AC1_H_ +#define AC1_H_ + +#include "machine/z80pio.h" +#include "imagedev/cassette.h" + +class ac1_state : public driver_device +{ +public: + ac1_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_cassette(*this, "cassette"), + m_maincpu(*this, "maincpu"), + m_gfxdecode(*this, "gfxdecode"), + m_palette(*this, "palette"), + m_io_line(*this, "LINE") + { } + + DECLARE_DRIVER_INIT(ac1); + virtual void machine_reset(); + virtual void video_start(); + UINT32 screen_update_ac1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + UINT32 screen_update_ac1_32(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + DECLARE_READ8_MEMBER(ac1_port_b_r); + DECLARE_READ8_MEMBER(ac1_port_a_r); + DECLARE_WRITE8_MEMBER(ac1_port_a_w); + DECLARE_WRITE8_MEMBER(ac1_port_b_w); + +private: + required_device<cassette_image_device> m_cassette; + required_device<cpu_device> m_maincpu; + required_device<gfxdecode_device> m_gfxdecode; + required_device<palette_device> m_palette; + required_ioport_array<7> m_io_line; +}; + +/*----------- defined in video/ac1.c -----------*/ +extern const gfx_layout ac1_charlayout; + +#endif /* AC1_h_ */ |