summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asio/src/examples/cpp03/http/server2
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-09-25 14:33:12 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-09-25 14:33:12 -0400
commit25ed9f53f67a9e912c2559c9ca79bd43011b7e90 (patch)
treec7ac3fe0da8012d08c3efcc44852f15b7c4b79e1 /3rdparty/asio/src/examples/cpp03/http/server2
parent90e360901c068fe1bcee9d2239c5989e5b113988 (diff)
wgp: Read inputs through ADC device (nw)
Diffstat (limited to '3rdparty/asio/src/examples/cpp03/http/server2')
0 files changed, 0 insertions, 0 deletions
sion' href='/mame/blame/src/mame/includes/nbmj9195.h?id=111157ca09a9ff60fe4a9ba49173c315e94314fa'>^
0668334f272 ^




70a3aadb1c9 ^




4e8e3066f84 ^
1da9a7259b8 ^
1d40fe6824a ^
d2fd2856a72 ^
d3b07cb9e8e ^
33db0678932 ^
d3b07cb9e8e ^
bf4d8f4cfd8 ^


bf4d8f4cfd8 ^

33db0678932 ^
1b452e3bfb4 ^
d3b07cb9e8e ^
0668334f272 ^
8409f7d3233 ^



8409f7d3233 ^




















e4238fb654d ^
42adde9fd56 ^

174720a64dd ^
8409f7d3233 ^
d3b07cb9e8e ^



7dabd8b5245 ^

4ec36d19e90 ^

4ec36d19e90 ^


4ec36d19e90 ^
d3b07cb9e8e ^












4ec36d19e90 ^
c75c14d4d35 ^
9e020f8a89b ^


d3b07cb9e8e ^


3ac43e01873 ^
d3b07cb9e8e ^





2cd2938233b ^
d3b07cb9e8e ^


70a3aadb1c9 ^

9e020f8a89b ^
0668334f272 ^
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
                       
                                  






                                                                               
                              
 
                     
 

                           




                                           




                             
                                                                                        
                                                     
                                            
                                          
                                            
                                                  
                                                  


                                                     

                                                  
                                                             
 
                                                                                            
 



                                




















                                                     
                                           

                                                           
                                                  
                                       



                                              

                                                

                                                  


                                                 
                                                












                                                      
 
                                      


                                              


                                     
                                        





                                                                                                     
                                                  


                               

          
                                                                                                       
  
// license:BSD-3-Clause
// copyright-holders:Takahiro Nogi
/******************************************************************************

    nbmj9195 - Nichibutsu Mahjong games for years 1991-1995

******************************************************************************/

#include "cpu/z80/tmpz84c011.h"
#include "machine/gen_latch.h"

#define VRAM_MAX    2

#define SCANLINE_MIN    0
#define SCANLINE_MAX    512


class nbmj9195_state : public driver_device
{
public:
	enum
	{
		TIMER_BLITTER
	};

	nbmj9195_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) ,
		m_maincpu(*this, "maincpu"),
		m_screen(*this, "screen"),
		m_palette(*this, "palette"),
		m_soundlatch(*this, "soundlatch"),
		m_palette_ptr(*this, "paletteram")
	{ }

	required_device<tmpz84c011_device> m_maincpu;
	required_device<screen_device> m_screen;
	required_device<palette_device> m_palette;
	required_device<generic_latch_8_device> m_soundlatch;

	optional_shared_ptr<UINT8> m_palette_ptr; //shabdama doesn't use it at least for now

	int m_inputport;
	int m_dipswbitsel;
	int m_outcoin_flag;
	int m_mscoutm_inputport;
	int m_scrollx[VRAM_MAX];
	int m_scrolly[VRAM_MAX];
	int m_scrollx_raster[VRAM_MAX][SCANLINE_MAX];
	int m_scanline[VRAM_MAX];
	int m_blitter_destx[VRAM_MAX];
	int m_blitter_desty[VRAM_MAX];
	int m_blitter_sizex[VRAM_MAX];
	int m_blitter_sizey[VRAM_MAX];
	int m_blitter_src_addr[VRAM_MAX];
	int m_blitter_direction_x[VRAM_MAX];
	int m_blitter_direction_y[VRAM_MAX];
	int m_dispflag[VRAM_MAX];
	int m_flipscreen[VRAM_MAX];
	int m_clutmode[VRAM_MAX];
	int m_transparency[VRAM_MAX];
	int m_clutsel;
	int m_screen_refresh;
	int m_gfxflag2;
	int m_gfxdraw_mode;
	int m_nb19010_busyctr;
	int m_nb19010_busyflag;
	bitmap_ind16 m_tmpbitmap[VRAM_MAX];
	std::unique_ptr<UINT16[]> m_videoram[VRAM_MAX];
	std::unique_ptr<UINT16[]> m_videoworkram[VRAM_MAX];
	std::unique_ptr<UINT8[]> m_clut[VRAM_MAX];
	int m_flipscreen_old[VRAM_MAX];
	emu_timer *m_blitter_timer;

	DECLARE_WRITE8_MEMBER(soundbank_w);
	DECLARE_WRITE8_MEMBER(inputportsel_w);
	DECLARE_READ8_MEMBER(mscoutm_dipsw_0_r);
	DECLARE_READ8_MEMBER(mscoutm_dipsw_1_r);
	DECLARE_READ8_MEMBER(mscoutm_cpu_portb_r);
	DECLARE_READ8_MEMBER(mscoutm_cpu_portc_r);
	DECLARE_READ8_MEMBER(others_cpu_porta_r);
	DECLARE_READ8_MEMBER(others_cpu_portb_r);
	DECLARE_READ8_MEMBER(others_cpu_portc_r);
	DECLARE_WRITE8_MEMBER(soundcpu_porte_w);
	DECLARE_WRITE8_MEMBER(palette_w);
	DECLARE_WRITE8_MEMBER(nb22090_palette_w);
	DECLARE_WRITE8_MEMBER(blitter_0_w);
	DECLARE_WRITE8_MEMBER(blitter_1_w);
	DECLARE_READ8_MEMBER(blitter_0_r);
	DECLARE_READ8_MEMBER(blitter_1_r);
	DECLARE_WRITE8_MEMBER(clut_0_w);
	DECLARE_WRITE8_MEMBER(clut_1_w);
	DECLARE_WRITE8_MEMBER(clutsel_w);
	DECLARE_WRITE8_MEMBER(gfxflag2_w);
	DECLARE_WRITE8_MEMBER(outcoin_flag_w);
	DECLARE_WRITE8_MEMBER(dipswbitsel_w);
	DECLARE_WRITE8_MEMBER(mscoutm_inputportsel_w);

	DECLARE_DRIVER_INIT(nbmj9195);
	virtual void machine_start() override;
	virtual void machine_reset() override;
	virtual void video_start() override;
	DECLARE_VIDEO_START(_1layer);
	DECLARE_VIDEO_START(nb22090);

	INTERRUPT_GEN_MEMBER(ctc0_trg1);

	UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
	int blitter_r(int offset, int vram);
	void blitter_w(int offset, int data, int vram);
	void clut_w(int offset, int data, int vram);
	void vramflip(int vram);
	void update_pixel(int vram, int x, int y);
	void gfxdraw(int vram);
	int dipsw_r();
	void postload();

protected:
	virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};