mirror of
https://github.com/holub/mame
synced 2025-06-01 02:21:48 +03:00
svision.cpp: Use MCFG_SCREEN_VBLANK_CALLBACK instead of MCFG_DEVICE_VBLANK_INT, darn it (nw)
This commit is contained in:
parent
818f14c86f
commit
0015f48a75
@ -422,10 +422,13 @@ uint32_t svision_state::screen_update_tvlink(screen_device &screen, bitmap_rgb32
|
||||
return 0;
|
||||
}
|
||||
|
||||
INTERRUPT_GEN_MEMBER(svision_state::svision_frame_int)
|
||||
WRITE_LINE_MEMBER(svision_state::frame_int_w)
|
||||
{
|
||||
if (!state)
|
||||
return;
|
||||
|
||||
if (BIT(m_reg[BANK], 0))
|
||||
device.execute().pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
||||
m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
||||
|
||||
m_sound->sound_decrement();
|
||||
}
|
||||
@ -519,7 +522,6 @@ MACHINE_CONFIG_START(svision_state::svision)
|
||||
|
||||
MCFG_DEVICE_ADD(m_maincpu, M65C02, 4000000)
|
||||
MCFG_DEVICE_PROGRAM_MAP(svision_mem)
|
||||
MCFG_DEVICE_VBLANK_INT_DRIVER(m_screen, svision_state, svision_frame_int)
|
||||
|
||||
MCFG_SCREEN_ADD(m_screen, LCD)
|
||||
MCFG_SCREEN_REFRESH_RATE(61)
|
||||
@ -527,6 +529,7 @@ MACHINE_CONFIG_START(svision_state::svision)
|
||||
MCFG_SCREEN_VISIBLE_AREA(3+0, 3+160-1, 0, 160-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(svision_state, screen_update_svision)
|
||||
MCFG_SCREEN_PALETTE(m_palette)
|
||||
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, svision_state, frame_int_w))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, ARRAY_LENGTH(svision_palette) * 3)
|
||||
MCFG_PALETTE_INIT_OWNER(svision_state, svision )
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
void init_svision();
|
||||
uint32_t screen_update_svision(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
uint32_t screen_update_tvlink(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
INTERRUPT_GEN_MEMBER(svision_frame_int);
|
||||
DECLARE_WRITE_LINE_MEMBER(frame_int_w);
|
||||
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(svision_cart);
|
||||
|
||||
void svisionp(machine_config &config);
|
||||
|
Loading…
Reference in New Issue
Block a user