mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
mjsister.cpp: substitute timer_set with timer_alloc(timer) and timer->adjust() (nw)
This commit is contained in:
parent
0aaed60e38
commit
02519cf661
@ -83,6 +83,8 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
|
||||
|
||||
emu_timer *m_dac_timer;
|
||||
};
|
||||
|
||||
|
||||
@ -204,7 +206,7 @@ TIMER_CALLBACK_MEMBER(mjsister_state::dac_callback)
|
||||
m_dac->write(DACROM[(m_dac_bank * 0x10000 + m_dac_adr++) & 0x1ffff]);
|
||||
|
||||
if (((m_dac_adr & 0xff00 ) >> 8) != m_dac_adr_e)
|
||||
timer_set(attotime::from_hz(MCLK) * 1024, TIMER_DAC);
|
||||
m_dac_timer->adjust(attotime::from_hz(MCLK) * 1024);
|
||||
else
|
||||
m_dac_busy = 0;
|
||||
}
|
||||
@ -444,6 +446,8 @@ void mjsister_state::machine_start()
|
||||
|
||||
membank("bank1")->configure_entries(0, 4, &ROM[0x10000], 0x8000);
|
||||
|
||||
m_dac_timer = timer_alloc(TIMER_DAC);
|
||||
|
||||
save_item(NAME(m_dac_busy));
|
||||
save_item(NAME(m_flip_screen));
|
||||
save_item(NAME(m_video_enable));
|
||||
|
Loading…
Reference in New Issue
Block a user