summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/example/serialize/serialize.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-05-03 14:12:51 +0200
committer hap <happppp@users.noreply.github.com>2025-05-03 14:13:01 +0200
commitcd193adae36c6055c1b0f83b2e74672523c06d1c (patch)
tree50bcf0f584432f4cedc6361d046d09e03e32315e /3rdparty/rapidjson/example/serialize/serialize.cpp
parent1a31dd0f377f5016c89260f04ba37e86672f4bca (diff)
m50dass: device is unemulated, disable cpu for now
Diffstat (limited to '3rdparty/rapidjson/example/serialize/serialize.cpp')
0 files changed, 0 insertions, 0 deletions
ision' href='/mame/blame/src/mame/includes/lucky74.h?id=084c0472a4f09e8ad9a20294809fbae7de49d562'>^
ee30ffbc296 ^
15017b328a8 ^


2beba4ce73f ^

3c0e3211237 ^


1da9a7259b8 ^
ee30ffbc296 ^
a3e4a45f1a5 ^
2beba4ce73f ^
5291d140218 ^
2beba4ce73f ^
15017b328a8 ^
2b0eec6adfa ^

26da0fedf25 ^
625a0595fb1 ^
26da0fedf25 ^



2b0eec6adfa ^
148c8649c7b ^





625a0595fb1 ^



4cde7dd0821 ^


5800f74cd6d ^

625a0595fb1 ^

3ac43e01873 ^
9f661e567c4 ^
625a0595fb1 ^

2beba4ce73f ^
7b52260440b ^







2beba4ce73f ^



7b52260440b ^

2beba4ce73f ^


5291d140218 ^
15017b328a8 ^
26da0fedf25 ^
a6592163c3e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
                       
                                   

                           

            
 
                          
                   
                    
 


                                          

                                                                                         


                                                    
                                                    
                                            
                                    
                                                
                                            
           
 

                                             
          
                                              



                                              
        





                                                               



                                                        


                                          

                                               

                                                                                                       
                                            
                                  

                                       
 







                                      



                                                   

                                          


                                                      
                                  
  
 
                             
// license:BSD-3-Clause
// copyright-holders:Roberto Fresca
#ifndef MAME_WING_LUCKY74_H
#define MAME_WING_LUCKY74_H

#pragma once

#include "sound/msm5205.h"
#include "emupal.h"
#include "tilemap.h"

class lucky74_state : public driver_device
{
public:
	lucky74_state(const machine_config &mconfig, device_type type, const char *tag) :
		driver_device(mconfig, type, tag),
		m_fg_videoram(*this, "fg_videoram"),
		m_fg_colorram(*this, "fg_colorram"),
		m_bg_videoram(*this, "bg_videoram"),
		m_bg_colorram(*this, "bg_colorram"),
		m_maincpu(*this, "maincpu"),
		m_msm(*this, "msm"),
		m_gfxdecode(*this, "gfxdecode"),
		m_lamps(*this, "lamp%u", 0U)
	{ }

	void lucky74(machine_config &config);

protected:
	virtual void machine_start() override;
	virtual void video_start() override;
	virtual void machine_reset() override;
	virtual void sound_start() override;

private:
	uint8_t custom_09R81P_port_r(offs_t offset);
	void custom_09R81P_port_w(offs_t offset, uint8_t data);
	uint8_t usart_8251_r();
	void usart_8251_w(uint8_t data);
	uint8_t copro_sm7831_r();
	void copro_sm7831_w(uint8_t data);
	void fg_videoram_w(offs_t offset, uint8_t data);
	void fg_colorram_w(offs_t offset, uint8_t data);
	void bg_videoram_w(offs_t offset, uint8_t data);
	void bg_colorram_w(offs_t offset, uint8_t data);
	void ym2149_portb_w(uint8_t data);
	void lamps_a_w(uint8_t data);
	void lamps_b_w(uint8_t data);
	TILE_GET_INFO_MEMBER(get_fg_tile_info);
	TILE_GET_INFO_MEMBER(get_bg_tile_info);
	void palette(palette_device &palette) const;
	uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
	INTERRUPT_GEN_MEMBER(nmi_interrupt);
	void adpcm_int(int state);
	void prg_map(address_map &map);
	void portmap(address_map &map);

	uint8_t m_ym2149_portb = 0U;
	uint8_t m_usart_8251 = 0U;
	uint8_t m_copro_sm7831 = 0U;
	int m_adpcm_pos = 0;
	int m_adpcm_end = 0;
	int m_adpcm_data = 0;
	uint8_t m_adpcm_reg[6]{};
	uint8_t m_adpcm_busy_line = 0;
	required_shared_ptr<uint8_t> m_fg_videoram;
	required_shared_ptr<uint8_t> m_fg_colorram;
	required_shared_ptr<uint8_t> m_bg_videoram;
	required_shared_ptr<uint8_t> m_bg_colorram;
	tilemap_t *m_fg_tilemap = nullptr;
	tilemap_t *m_bg_tilemap = nullptr;
	required_device<cpu_device> m_maincpu;
	required_device<msm5205_device> m_msm;
	required_device<gfxdecode_device> m_gfxdecode;
	output_finder<12> m_lamps;
};

#endif // MAME_WING_LUCKY74_H