当前位置: 首页>>代码示例>>C++>>正文


C++ device_irq_acknowledge_delegate函数代码示例

本文整理汇总了C++中device_irq_acknowledge_delegate函数的典型用法代码示例。如果您正苦于以下问题:C++ device_irq_acknowledge_delegate函数的具体用法?C++ device_irq_acknowledge_delegate怎么用?C++ device_irq_acknowledge_delegate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了device_irq_acknowledge_delegate函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: machine_start

void vixen_state::machine_start()
{
	// interrupt callback
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(vixen_state::vixen_int_ack),this));

	// configure memory banking
	UINT8 *ram = m_ram->pointer();

	membank("bank1")->configure_entry(0, ram);
	membank("bank1")->configure_entry(1, m_rom->base());

	membank("bank2")->configure_entry(0, ram);
	membank("bank2")->configure_entry(1, m_video_ram);

	membank("bank3")->configure_entry(0, m_video_ram);
	membank("bank3")->configure_entry(1, m_rom->base());

	membank("bank4")->configure_entry(0, m_video_ram);

	// register for state saving
	save_item(NAME(m_reset));
	save_item(NAME(m_col));
	save_item(NAME(m_cmd_d0));
	save_item(NAME(m_cmd_d1));
	save_item(NAME(m_fdint));
}
开发者ID:antervud,项目名称:MAMEHub,代码行数:26,代码来源:vixen.c

示例2:

SLOT_INTERFACE_END


//**************************************************************************
//  MACHINE INITIALIZATION
//**************************************************************************

//-------------------------------------------------
//  MACHINE_START( victor9k )
//-------------------------------------------------

void victor9k_state::machine_start()
{
	// set interrupt callback
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(victor9k_state::victor9k_irq_callback),this));

	// set floppy callbacks
	m_floppy0->setup_ready_cb(floppy_image_device::ready_cb(FUNC(victor9k_state::ready0_cb), this));
	m_floppy0->setup_load_cb(floppy_image_device::load_cb(FUNC(victor9k_state::load0_cb), this));
	m_floppy0->setup_unload_cb(floppy_image_device::unload_cb(FUNC(victor9k_state::unload0_cb), this));
	m_floppy1->setup_ready_cb(floppy_image_device::ready_cb(FUNC(victor9k_state::ready1_cb), this));
	m_floppy1->setup_load_cb(floppy_image_device::load_cb(FUNC(victor9k_state::load1_cb), this));
	m_floppy1->setup_unload_cb(floppy_image_device::unload_cb(FUNC(victor9k_state::unload1_cb), this));

	// memory banking
	address_space &program = m_maincpu->space(AS_PROGRAM);
	program.install_ram(0x00000, m_ram->size() - 1, m_ram->pointer());

	m_via5->write_ca1(m_brdy);
	m_via6->write_ca1(m_gcrerr);
}
开发者ID:felipesanches,项目名称:ume,代码行数:31,代码来源:victor9k.c

示例3: static_set_irq_acknowledge_callback

void v53_base_device::device_start()
{
    nec_common_device::device_start();

    m_txd_handler.resolve_safe();
    m_rts_handler.resolve_safe();
    m_dtr_handler.resolve_safe();
    m_rxrdy_handler.resolve_safe();
    m_txrdy_handler.resolve_safe();
    m_txempty_handler.resolve_safe();

    m_out0_handler.resolve_safe();
    m_out1_handler.resolve_safe();
    m_out2_handler.resolve_safe();

    m_out_hreq_cb.resolve_safe();
    m_out_eop_cb.resolve_safe();
    m_in_memr_cb.resolve_safe(0);
    m_out_memw_cb.resolve_safe();
    m_in_ior_0_cb.resolve_safe(0);
    m_in_ior_1_cb.resolve_safe(0);
    m_in_ior_2_cb.resolve_safe(0);
    m_in_ior_3_cb.resolve_safe(0);
    m_out_iow_0_cb.resolve_safe();
    m_out_iow_1_cb.resolve_safe();
    m_out_iow_2_cb.resolve_safe();
    m_out_iow_3_cb.resolve_safe();
    m_out_dack_0_cb.resolve_safe();
    m_out_dack_1_cb.resolve_safe();
    m_out_dack_2_cb.resolve_safe();
    m_out_dack_3_cb.resolve_safe();

    static_set_irq_acknowledge_callback(*this, device_irq_acknowledge_delegate(FUNC(pic8259_device::inta_cb), (pic8259_device*)m_v53icu));
}
开发者ID:weihu811102,项目名称:MAMEHub,代码行数:34,代码来源:v53.c

示例4: machine_start

void wangpc_state::machine_start()
{
	// register CPU IRQ callback
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(wangpc_state::wangpc_irq_callback),this));

	// connect serial keyboard
	m_uart->connect(m_kb);

	// connect floppy callbacks
	m_floppy0->setup_load_cb(floppy_image_device::load_cb(FUNC(wangpc_state::on_disk0_load), this));
	m_floppy0->setup_unload_cb(floppy_image_device::unload_cb(FUNC(wangpc_state::on_disk0_unload), this));
	m_floppy1->setup_load_cb(floppy_image_device::load_cb(FUNC(wangpc_state::on_disk1_load), this));
	m_floppy1->setup_unload_cb(floppy_image_device::unload_cb(FUNC(wangpc_state::on_disk1_unload), this));

	m_fdc->setup_intrq_cb(upd765a_device::line_cb(FUNC(wangpc_state::fdc_irq), this));
	m_fdc->setup_drq_cb(upd765a_device::line_cb(FUNC(wangpc_state::fdc_drq), this));

	// state saving
	save_item(NAME(m_dma_page));
	save_item(NAME(m_dack));
	save_item(NAME(m_timer2_irq));
	save_item(NAME(m_acknlg));
	save_item(NAME(m_dav));
	save_item(NAME(m_busy));
	save_item(NAME(m_dma_eop));
	save_item(NAME(m_uart_dr));
	save_item(NAME(m_uart_tbre));
	save_item(NAME(m_fpu_irq));
	save_item(NAME(m_bus_irq2));
	save_item(NAME(m_enable_eop));
	save_item(NAME(m_disable_dreq2));
	save_item(NAME(m_fdc_drq));
	save_item(NAME(m_ds1));
	save_item(NAME(m_ds2));
}
开发者ID:felipesanches,项目名称:ume,代码行数:35,代码来源:wangpc.c

示例5: machine_start

INPUT_PORTS_END
#endif

void gammagic_state::machine_start()
{
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(gammagic_state::irq_callback),this));
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:7,代码来源:gammagic.c

示例6:

void poly88_state::machine_reset()
{
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(poly88_state::poly88_irq_callback),this));
	m_intr = 0;
	m_last_code = 0;

	timer_set(attotime::zero, TIMER_SETUP_MACHINE_STATE);
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:8,代码来源:poly88.c

示例7: machine

void msx_cart_sfg_device::device_start()
{
	// Set rom mask
	m_rom_mask = m_region_sfg->bytes() - 1;

	// This should probably moved up in the bus/slot hierarchy for the msx driver
	cpu_device *maincpu = machine().device<cpu_device>("maincpu");
	maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(msx_cart_sfg_device::irq_callback),this));
}
开发者ID:RafTacker,项目名称:mame,代码行数:9,代码来源:yamaha.cpp

示例8: machine_start

INPUT_PORTS_END

void magtouch_state::machine_start()
{
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(magtouch_state::irq_callback),this));

	membank("rombank")->configure_entries(0, 0x80, memregion("game_prg")->base(), 0x8000 );
	membank("rombank")->set_entry(0);
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:9,代码来源:magtouch.c

示例9: machine

void tmp68301_device::device_reset()
{
	int i;

	for (i = 0; i < 3; i++)
		m_IE[i] = 0;

	machine().firstcpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(tmp68301_device::irq_callback),this));
}
开发者ID:LeWoY,项目名称:MAMEHub,代码行数:9,代码来源:tmp68301.c

示例10: machine_reset

/*****************************************************************************
 Reset and Driver Init
*****************************************************************************/
void tsispch_state::machine_reset()
{
    // clear fifos (TODO: memset would work better here...)
    int i;
    for (i=0; i<32; i++) m_infifo[i] = 0;
    m_infifo_tail_ptr = m_infifo_head_ptr = 0;
    m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(tsispch_state::irq_callback),this));
    fprintf(stderr,"machine reset\n");
}
开发者ID:thomas41546,项目名称:mame4raspi,代码行数:12,代码来源:tsispch.c

示例11: auto_alloc_array

ADDRESS_MAP_END

void queen_state::machine_start()
{
	m_bios_ram = auto_alloc_array(machine(), UINT32, 0x10000/4);
	m_bios_ext_ram = auto_alloc_array(machine(), UINT32, 0x10000/4);

	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(queen_state::irq_callback),this));
	intel82439tx_init();
}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:10,代码来源:queen.c

示例12: machine

void dcheese_state::machine_start()
{
	m_bsmt = machine().device("bsmt");

	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(dcheese_state::irq_callback),this));

	save_item(NAME(m_irq_state));
	save_item(NAME(m_soundlatch_full));
	save_item(NAME(m_sound_control));
	save_item(NAME(m_sound_msb_latch));
}
开发者ID:felipesanches,项目名称:ume,代码行数:11,代码来源:dcheese.c

示例13: machine_start

INPUT_PORTS_END

void pcat_nit_state::machine_start()
{
	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(pcat_nit_state::irq_callback),this));

	membank("rombank")->configure_entries(0, 0x80, memregion("game_prg")->base(), 0x8000 );
	membank("rombank")->set_entry(0);

	//microtouch_init(machine(), pcat_nit_microtouch_tx_callback, NULL);
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:11,代码来源:pcat_nit.c

示例14: auto_alloc_array

INPUT_PORTS_END

void funkball_state::machine_start()
{
	m_bios_ram = auto_alloc_array(machine(), UINT8, 0x20000);

	m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(funkball_state::irq_callback),this));

	/* defaults, otherwise it won't boot */
	m_unk_ram[0x010/4] = 0x2f8d85ff;
	m_unk_ram[0x018/4] = 0x000018c5;
}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:12,代码来源:funkball.c

示例15: timer_alloc

void mie_device::device_start()
{
	maple_device::device_start();
	cpu = subdevice<z80_device>("mie");
	timer = timer_alloc(0);
	cpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(mie_device::irq_callback),this));
	jvs = machine().device<mie_jvs_device>(jvs_name);

	save_item(NAME(gpiodir));
	save_item(NAME(gpio_val));
	save_item(NAME(irq_enable));
	save_item(NAME(irq_pending));
	save_item(NAME(maple_irqlevel));
}
开发者ID:antervud,项目名称:MAMEHub,代码行数:14,代码来源:mie.c


注:本文中的device_irq_acknowledge_delegate函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。