summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/vicdual-97269pb.h
blob: 5e0839c8dcd313e3823988b8c882b9bcb369ba5e (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
32
33
34
35
36
37
38
39
// license:BSD-3-Clause
// copyright-holders:Ariane Fugmann
#ifndef MAME_VIDEO_VICDUAL_97269PB_H
#define MAME_VIDEO_VICDUAL_97269PB_H

#pragma once

//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

class s97269pb_device : public device_t
{
public:
	// construction/destruction
	s97269pb_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	// daughterboard logic
	void palette_bank_w(uint8_t data);
	pen_t choose_pen(uint8_t x, uint8_t y, pen_t back_pen);

protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_reset() override;
	virtual const tiny_rom_entry *device_rom_region() const override;

private:
	required_region_ptr<uint8_t> m_prom_ptr;

	// bit 2 enables gradient and starfield
	// bit 3 seems to be used to flip for cocktail
	uint8_t m_palette_bank;
};

// device type definition
DECLARE_DEVICE_TYPE(S97269PB, s97269pb_device)

#endif // MAME_VIDEO_VICDUAL_97269PB_H