mirror of
https://github.com/holub/mame
synced 2025-05-08 23:31:54 +03:00
Added DE, CURSOR, HSYNC, and VSYNC line read members to MC6845. [Curt Coder]
This commit is contained in:
parent
f58d71ae0b
commit
1dd9b4a194
@ -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)
|
void mc6845_device::recompute_parameters(bool postload)
|
||||||
{
|
{
|
||||||
UINT16 hsync_on_pos, hsync_off_pos, vsync_on_pos, vsync_off_pos;
|
UINT16 hsync_on_pos, hsync_off_pos, vsync_on_pos, vsync_off_pos;
|
||||||
|
@ -118,6 +118,18 @@ public:
|
|||||||
/* write to the currently selected register */
|
/* write to the currently selected register */
|
||||||
DECLARE_WRITE8_MEMBER( register_w );
|
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 */
|
/* return the current value on the MA0-MA13 pins */
|
||||||
UINT16 get_ma();
|
UINT16 get_ma();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user