summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/topcat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/topcat.h')
-rw-r--r--src/devices/video/topcat.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/devices/video/topcat.h b/src/devices/video/topcat.h
index f7bf73655c6..114d4bc208a 100644
--- a/src/devices/video/topcat.h
+++ b/src/devices/video/topcat.h
@@ -22,6 +22,7 @@ public:
void set_fb_width(int _pixels) { m_fb_width = _pixels; }
void set_fb_height(int _pixels) { m_fb_height = _pixels; }
void set_planemask(int _mask) { m_plane_mask = _mask; }
+ void get_cursor_pos(int *startx, int *starty, int *endx, int *endy);
TIMER_CALLBACK_MEMBER(cursor_callback);
@@ -31,6 +32,7 @@ public:
DECLARE_WRITE16_MEMBER(ctrl_w);
void topcat_mem(address_map &map);
+
protected:
topcat_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
@@ -70,7 +72,7 @@ private:
TOPCAT_REG_START_WMOVE=0x4e,
TOPCAT_REG_ENABLE_BLINK_PLANES=0x50,
TOPCAT_REG_ENABLE_ALT_FRAME=0x54,
- TOPCAT_REG_CURSOR_CNTL=0x56,
+ TOPCAT_REG_CURSOR_PLANE_ENABLE=0x56,
TOPCAT_REG_PIXEL_REPLACE_RULE=0x75,
TOPCAT_REG_MOVE_REPLACE_RULE=0x77,
TOPCAT_REG_SOURCE_X_PIXEL=0x79,
@@ -87,7 +89,7 @@ private:
void window_move(void);
void execute_rule(bool src, replacement_rule_t rule, bool &dst);
- void update_cursor(int x, int y, uint8_t ctrl, uint8_t width);
+ void update_cursor(int x, int y, uint16_t ctrl, uint8_t width);
void modify_vram(int x, int y, bool state) {
if (state)
@@ -114,12 +116,12 @@ private:
uint8_t m_display_enable_planes;
bool m_write_enable_plane;
bool m_read_enable_plane;
- bool m_fb_write_enable;
- uint8_t m_enable_blink_planes;
- uint8_t m_enable_alt_frame;
- uint8_t m_cursor_ctrl;
- uint8_t m_move_replacement_rule;
- uint8_t m_pixel_replacement_rule;
+ uint16_t m_fb_write_enable;
+ uint16_t m_enable_blink_planes;
+ uint16_t m_enable_alt_frame;
+ uint16_t m_cursor_plane_enable;
+ uint16_t m_move_replacement_rule;
+ uint16_t m_pixel_replacement_rule;
uint16_t m_source_x_pixel;
uint16_t m_source_y_pixel;
uint16_t m_dst_x_pixel;