summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/nb1414m4.h
blob: 2832d6a38b2754d1ae4b272020ec8d20db41213b (plain) (blame)
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
// license:LGPL-2.1+
// copyright-holders:Angelo Salese
class nb1414m4_device : public device_t,
									public device_video_interface
{
public:
	nb1414m4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
	~nb1414m4_device() {}

	void exec(UINT16 mcu_cmd, UINT8 *vram, UINT16 &scrollx, UINT16 &scrolly, tilemap_t *tilemap);

protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_reset() override;

private:
	void dma(UINT16 src, UINT16 dst, UINT16 size, UINT8 condition, UINT8 *vram);
	void fill(UINT16 dst, UINT8 tile, UINT8 pal, UINT8 *vram);
	void insert_coin_msg(UINT8 *vram);
	void credit_msg(UINT8 *vram);
	void kozure_score_msg(UINT16 dst, UINT8 src_base, UINT8 *vram);
	void _0200(UINT16 mcu_cmd, UINT8 *vram);
	void _0600(UINT8 is2p, UINT8 *vram);
	void _0e00(UINT16 mcu_cmd, UINT8 *vram);

	required_region_ptr<UINT8> m_data;

};

extern const device_type NB1414M4;