mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
x68k: guess at scan rate for mode 25
This commit is contained in:
parent
224045e8ef
commit
92aa2bb483
@ -176,7 +176,7 @@ void x68k_crtc_device::refresh_mode()
|
|||||||
|
|
||||||
// LOG("CRTC regs - %i %i %i %i - %i %i %i %i - %i - %i\n", m_reg[0], m_reg[1], m_reg[2], m_reg[3],
|
// LOG("CRTC regs - %i %i %i %i - %i %i %i %i - %i - %i\n", m_reg[0], m_reg[1], m_reg[2], m_reg[3],
|
||||||
// m_reg[4], m_reg[5], m_reg[6], m_reg[7], m_reg[8], m_reg[9]);
|
// m_reg[4], m_reg[5], m_reg[6], m_reg[7], m_reg[8], m_reg[9]);
|
||||||
int div;
|
double div;
|
||||||
switch (m_reg[20] & 0x1f)
|
switch (m_reg[20] & 0x1f)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@ -198,6 +198,9 @@ void x68k_crtc_device::refresh_mode()
|
|||||||
case 0x15:
|
case 0x15:
|
||||||
div = 3;
|
div = 3;
|
||||||
break;
|
break;
|
||||||
|
case 0x19:
|
||||||
|
div = 1.5;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
attotime refresh = attotime::from_hz((BIT(m_reg[20], 4) ? clock_69m() : clock_39m()) / div) * (scr.max_x * scr.max_y);
|
attotime refresh = attotime::from_hz((BIT(m_reg[20], 4) ? clock_69m() : clock_39m()) / div) * (scr.max_x * scr.max_y);
|
||||||
LOG("screen().configure(%i,%i,[%i,%i,%i,%i],%f)\n", scr.max_x, scr.max_y, visiblescr.min_x, visiblescr.min_y, visiblescr.max_x, visiblescr.max_y, refresh.as_hz());
|
LOG("screen().configure(%i,%i,[%i,%i,%i,%i],%f)\n", scr.max_x, scr.max_y, visiblescr.min_x, visiblescr.min_y, visiblescr.max_x, visiblescr.max_y, refresh.as_hz());
|
||||||
|
Loading…
Reference in New Issue
Block a user