summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/t6963c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/t6963c.h')
-rw-r--r--src/devices/video/t6963c.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/devices/video/t6963c.h b/src/devices/video/t6963c.h
index 6eabc1bc4c0..3cc0018f81b 100644
--- a/src/devices/video/t6963c.h
+++ b/src/devices/video/t6963c.h
@@ -12,6 +12,10 @@
#pragma once
+#include "emupal.h"
+#include "screen.h"
+
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -35,6 +39,12 @@ public:
u8 read(offs_t offset);
void write(offs_t offset, u8 data);
+ // Display configurations
+ void set_md(u8 data); // MD0, MD1, MD2, MD3, MDS
+ void set_fs(u8 data); // FS0, FS1
+
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+
static constexpr feature_type unemulated_features() { return feature::GRAPHICS; }
protected:
@@ -58,6 +68,16 @@ private:
u16 m_data;
u16 m_adp;
auto_mode m_auto_mode;
+ u16 m_graphic_home;
+ u16 m_text_home;
+ u16 m_graphic_area;
+ u16 m_text_area;
+ u16 m_cgram_offset;
+ u8 m_mode;
+ u8 m_display_mode;
+ u8 m_font_size;
+ u8 m_number_cols;
+ u8 m_number_lines;
};
// ======================> lm24014h_device
@@ -71,6 +91,7 @@ public:
// CPU read/write access
u8 read(offs_t offset) { return m_lcdc->read(offset); }
void write(offs_t offset, u8 data) { m_lcdc->write(offset, data); }
+ void set_fs(u8 data) { m_fs = data & 1; }
protected:
// device-specific overrides
@@ -78,12 +99,15 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
+ void lcd_palette(palette_device &palette) const;
+
private:
// internal configuration
void ram_map(address_map &map);
// internal LCD controller
required_device<t6963c_device> m_lcdc;
+ int m_fs;
};
// device type declarations