blob: 7b47a07fe04f22679720a3eb2554df6cda9a3db3 (
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
|
// license:BSD-3-Clause
// copyright-holders:David Haywood
#ifndef MAME_MACHINE_BL_HANDHELDS_LCDC_H
#define MAME_MACHINE_BL_HANDHELDS_LCDC_H
#pragma once
DECLARE_DEVICE_TYPE(BL_HANDHELDS_LCDC, bl_handhelds_lcdc_device)
class bl_handhelds_lcdc_device : public device_t
{
public:
// construction/destruction
bl_handhelds_lcdc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
void lcdc_command_w(u8 data);
u8 lcdc_data_r();
void lcdc_data_w(u8 data);
u32 render_to_bitmap(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
virtual void device_start() override;
virtual void device_reset() override;
private:
u8 m_displaybuffer[256 * 256 * 2]{};
u16 m_posx = 0, m_posy = 0;
u16 m_posminx = 0, m_posmaxx = 0;
u16 m_posminy = 0, m_posmaxy = 0;
u8 m_command = 0;
u8 m_commandstep = 0;
};
#endif // MAME_MACHINE_BL_HANDHELDS_LCDC_H
|