1 // license:BSD-3-Clause
2 // copyright-holders:Aaron Giles
3 /*************************************************************************
4 
5     Atari Shuuz hardware
6 
7 *************************************************************************/
8 #ifndef MAME_INCLUDES_SHUUZ_H
9 #define MAME_INCLUDES_SHUUZ_H
10 
11 #pragma once
12 
13 #include "video/atarimo.h"
14 #include "video/atarivad.h"
15 #include "screen.h"
16 #include "tilemap.h"
17 
18 class shuuz_state : public driver_device
19 {
20 public:
shuuz_state(const machine_config & mconfig,device_type type,const char * tag)21 	shuuz_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_vad(*this, "vad")
27 	{ }
28 
29 	void shuuz(machine_config &config);
30 
31 private:
32 	void latch_w(uint16_t data);
33 	uint16_t leta_r(offs_t offset);
34 	uint16_t special_port0_r();
35 
36 	virtual void machine_start() override;
37 
get_hblank(screen_device & screen)38 	int get_hblank(screen_device &screen) const { return (screen.hpos() > (screen.width() * 9 / 10)); }
39 
40 	TILE_GET_INFO_MEMBER(get_playfield_tile_info);
41 
42 	uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
43 
44 	void main_map(address_map &map);
45 
46 	required_device<cpu_device> m_maincpu;
47 	required_device<gfxdecode_device> m_gfxdecode;
48 	required_device<screen_device> m_screen;
49 	required_device<atari_vad_device> m_vad;
50 
51 	int m_cur[2];
52 
53 	static const atari_motion_objects_config s_mob_config;
54 };
55 
56 #endif // MAME_INCLUDES_SHUUZ_H
57