1 // license:BSD-3-Clause
2 // copyright-holders:Aaron Giles
3 /*************************************************************************
4 
5     Atari Arcade Classics hardware (prototypes)
6 
7 *************************************************************************/
8 #ifndef MAME_INCLUDES_ARCADECL_H
9 #define MAME_INCLUDES_ARCADECL_H
10 
11 #pragma once
12 
13 #include "machine/timer.h"
14 #include "video/atarimo.h"
15 #include "sound/okim6295.h"
16 #include "screen.h"
17 
18 class sparkz_state : public driver_device
19 {
20 public:
sparkz_state(const machine_config & mconfig,device_type type,const char * tag)21 	sparkz_state(const machine_config &mconfig, device_type type, const char *tag)
22 		: driver_device(mconfig, type, tag)
23 		, m_maincpu(*this, "maincpu")
24 		, m_gfxdecode(*this, "gfxdecode")
25 		, m_screen(*this, "screen")
26 		, m_oki(*this, "oki")
27 		, m_bitmap(*this, "bitmap")
28 	{ }
29 
30 	void sparkz(machine_config &config);
31 
32 protected:
33 	virtual void machine_reset() override;
34 	TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
35 	void scanline_int_ack_w(uint16_t data);
36 	void latch_w(uint8_t data);
37 	virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
38 	void main_map(address_map &map);
39 
40 	required_device<cpu_device> m_maincpu;
41 	required_device<gfxdecode_device> m_gfxdecode;
42 	required_device<screen_device> m_screen;
43 	required_device<okim6295_device> m_oki;
44 	required_shared_ptr<uint16_t> m_bitmap;
45 };
46 
47 
48 class arcadecl_state : public sparkz_state
49 {
50 public:
arcadecl_state(const machine_config & mconfig,device_type type,const char * tag)51 	arcadecl_state(const machine_config &mconfig, device_type type, const char *tag)
52 		: sparkz_state(mconfig, type, tag)
53 		, m_mob(*this, "mob")
54 	{ }
55 
56 	void arcadecl(machine_config &config);
57 
58 protected:
59 	virtual void video_start() override;
60 	virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) override;
61 
62 private:
63 	required_device<atari_motion_objects_device> m_mob;
64 
65 	static const atari_motion_objects_config s_mob_config;
66 };
67 
68 #endif // MAME_INCLUDES_ARCADECL_H
69