summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/nereid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/nereid.h')
-rw-r--r--src/devices/video/nereid.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/devices/video/nereid.h b/src/devices/video/nereid.h
index 3a5760be2a8..fd470ba8883 100644
--- a/src/devices/video/nereid.h
+++ b/src/devices/video/nereid.h
@@ -13,7 +13,7 @@ public:
DECLARE_READ16_MEMBER(ctrl_r);
DECLARE_WRITE16_MEMBER(ctrl_w);
- rgb_t map_color(uint8_t input);
+ rgb_t map_color(uint8_t input, uint8_t ovl = 0);
protected:
nereid_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
@@ -22,15 +22,25 @@ protected:
private:
static constexpr int NEREID_BUSY=1;
+
+ static constexpr int NEREID_BLANK_ALL=0x2e;
+ static constexpr int NEREID_WRITE_STROBE_OVERLAY=0x3c;
+ static constexpr int NEREID_UNKNOWN_A0=0x50;
+ static constexpr int NEREID_OVERLAY_CTL=0x51;
+ static constexpr int NEREID_INDEX0=0x58;
static constexpr int NEREID_RED_DATA=0x59;
static constexpr int NEREID_GREEN_DATA=0x5a;
static constexpr int NEREID_BLUE_DATA=0x5b;
static constexpr int NEREID_INDEX=0x5c;
static constexpr int NEREID_PLANE_MASK=0x5d;
+ static constexpr int NEREID_OVERLAY_INDEX=0x5e;
+ static constexpr int NEREID_REV=0x5f;
static constexpr int NEREID_WRITE_STROBE=0x78;
static constexpr int NEREID_READ_STROBE=0x7c;
- rgb_t m_palette[256];
+
+ std::array<rgb_t, 256> m_video_palette;
+ std::array<rgb_t, 256> m_overlay_palette;
/* registers */
uint8_t m_red;
@@ -38,6 +48,9 @@ private:
uint8_t m_blue;
uint8_t m_index;
uint8_t m_plane_mask;
+ uint8_t m_overlay_ctl;
+ uint8_t m_unknown_a0;
+ uint8_t m_overlay_index;
};
DECLARE_DEVICE_TYPE(NEREID, nereid_device)