Exemplo n.º 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();
}
Exemplo n.º 2
0
Arquivo: gb.cpp Projeto: 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();
}
Exemplo n.º 3
0
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();
}
Exemplo n.º 4
0
Arquivo: gb.cpp Projeto: 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);
    }
}
Exemplo n.º 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();
}
Exemplo n.º 6
0
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);
}
Exemplo n.º 7
0
Arquivo: gb.cpp Projeto: RalfVB/mame
void gb_state::machine_start()
{
    save_gb_base();
}