本文整理汇总了C++中required_device::configure方法的典型用法代码示例。如果您正苦于以下问题:C++ required_device::configure方法的具体用法?C++ required_device::configure怎么用?C++ required_device::configure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类required_device
的用法示例。
在下文中一共展示了required_device::configure方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: machine
void aces1_state::machine_start()
{
m_reel0->configure(&starpoint_interface_48step);
m_reel1->configure(&starpoint_interface_48step);
m_reel2->configure(&starpoint_interface_48step);
m_reel3->configure(&starpoint_interface_48step);
for (int reel=0; reel <4; reel++)
{
m_reel_clock[reel] =0;
m_reel_phase[reel] =0;
}
m_aces1_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_irq_timer_callback),this), 0);
m_aces1_nmi_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_nmi_timer_callback),this), 0);
}
示例2:
void riscpc_state::vidc20_dynamic_screen_change()
{
/* sanity checks - first pass */
/*
total cycles + border start/end
*/
if(m_vidc20_horz_reg[HCR] && m_vidc20_horz_reg[HBSR] && m_vidc20_horz_reg[HBER] &&
m_vidc20_vert_reg[VCR] && m_vidc20_vert_reg[VBSR] && m_vidc20_vert_reg[VBER])
{
/* sanity checks - second pass */
/*
total cycles > border end > border start
*/
if((m_vidc20_horz_reg[HCR] > m_vidc20_horz_reg[HBER]) &&
(m_vidc20_horz_reg[HBER] > m_vidc20_horz_reg[HBSR]) &&
(m_vidc20_vert_reg[VCR] > m_vidc20_vert_reg[VBER]) &&
(m_vidc20_vert_reg[VBER] > m_vidc20_vert_reg[VBSR]))
{
/* finally ready to change the resolution */
int hblank_period,vblank_period;
rectangle visarea = m_screen->visible_area();
hblank_period = (m_vidc20_horz_reg[HCR] & 0x3ffc);
vblank_period = (m_vidc20_vert_reg[VCR] & 0x3fff);
/* note that we use the border registers as the visible area */
visarea.set(
(m_vidc20_horz_reg[HBSR] & 0x3ffe),
(m_vidc20_horz_reg[HBER] & 0x3ffe) - 1,
(m_vidc20_vert_reg[VBSR] & 0x1fff),
(m_vidc20_vert_reg[VBER] & 0x1fff) - 1);
m_screen->configure(hblank_period, vblank_period, visarea, m_screen->frame_period().attoseconds() );
logerror("VIDC20: successfully changed the screen to:\n Display Size = %d x %d\n Border Size %d x %d\n Cycle Period %d x %d\n",
(m_vidc20_horz_reg[HDER]-m_vidc20_horz_reg[HDSR]),(m_vidc20_vert_reg[VDER]-m_vidc20_vert_reg[VDSR]),
(m_vidc20_horz_reg[HBER]-m_vidc20_horz_reg[HBSR]),(m_vidc20_vert_reg[VBER]-m_vidc20_vert_reg[VBSR]),
hblank_period,vblank_period);
}
}
}