コード例 #1
0
void gb_state::machine_start()
{
	/* Allocate the serial timer, and disable it */
	m_gb_serial_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gb_state::gb_serial_timer_proc),this));
	m_gb_serial_timer->enable( 0 );

	save_gb_base();
}
コード例 #2
0
ファイル: gb.cpp プロジェクト: RalfVB/mame
MACHINE_START_MEMBER(gb_state,gbc)
{
    for (int i = 0; i < 8; i++)
        m_gbc_rammap[i] = m_ram->pointer() + CGB_START_RAM_BANKS + i * 0x1000;

    save_gb_base();
    save_gbc_only();
}
コード例 #3
0
ファイル: gb.c プロジェクト: antervud/MAMEHub
MACHINE_START_MEMBER(gb_state,gbpocket)
{
	/* Allocate the serial timer, and disable it */
	m_gb_serial_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gb_state::gb_serial_timer_proc),this));
	m_gb_serial_timer->enable( 0 );

	save_gb_base();
}
コード例 #4
0
ファイル: gb.cpp プロジェクト: RalfVB/mame
MACHINE_START_MEMBER(gb_state,sgb)
{
    m_sgb_packets = -1;

    save_gb_base();
    save_sgb_only();

    if (m_cartslot && m_cartslot->get_sgb_hack()) {
        dynamic_cast<sgb_ppu_device*>(m_ppu.target())->set_sgb_hack(TRUE);
    }
}
コード例 #5
0
MACHINE_START_MEMBER(gb_state,gbc)
{
	/* Allocate the serial timer, and disable it */
	m_gb_serial_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gb_state::gb_serial_timer_proc),this));
	m_gb_serial_timer->enable( 0 );

	for (int i = 0; i < 8; i++)
		m_gbc_rammap[i] = m_ram->pointer() + CGB_START_RAM_BANKS + i * 0x1000;

	save_gb_base();
	save_gbc_only();
}
コード例 #6
0
ファイル: gb.c プロジェクト: antervud/MAMEHub
MACHINE_START_MEMBER(gb_state,sgb)
{
	m_sgb_packets = -1;

	/* Allocate the serial timer, and disable it */
	m_gb_serial_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gb_state::gb_serial_timer_proc),this));
	m_gb_serial_timer->enable( 0 );

	save_gb_base();
	save_sgb_only();

	if (m_cartslot && m_cartslot->get_sgb_hack())
		machine().device<sgb_lcd_device>("lcd")->set_sgb_hack(TRUE);
}
コード例 #7
0
ファイル: gb.cpp プロジェクト: RalfVB/mame
void gb_state::machine_start()
{
    save_gb_base();
}