Added DE, CURSOR, HSYNC, and VSYNC line read members to MC6845. [Curt Coder]

This commit is contained in:
Curt Coder 2011-06-23 13:28:20 +00:00
parent f58d71ae0b
commit 1dd9b4a194
2 changed files with 36 additions and 0 deletions

View File

@ -241,6 +241,30 @@ WRITE8_MEMBER( mc6845_device::register_w )
}
READ_LINE_MEMBER( mc6845_device::de_r )
{
return m_de;
}
READ_LINE_MEMBER( mc6845_device::cursor_r )
{
return m_cur;
}
READ_LINE_MEMBER( mc6845_device::hsync_r )
{
return m_hsync;
}
READ_LINE_MEMBER( mc6845_device::vsync_r )
{
return m_vsync;
}
void mc6845_device::recompute_parameters(bool postload)
{
UINT16 hsync_on_pos, hsync_off_pos, vsync_on_pos, vsync_off_pos;

View File

@ -118,6 +118,18 @@ public:
/* write to the currently selected register */
DECLARE_WRITE8_MEMBER( register_w );
// read display enable line state
DECLARE_READ_LINE_MEMBER( de_r );
// read cursor line state
DECLARE_READ_LINE_MEMBER( cursor_r );
// read horizontal sync line state
DECLARE_READ_LINE_MEMBER( hsync_r );
// read vertical sync line state
DECLARE_READ_LINE_MEMBER( vsync_r );
/* return the current value on the MA0-MA13 pins */
UINT16 get_ma();