void m5_state::machine_start() { address_space *program = m_maincpu->memory().space(AS_PROGRAM); // configure VDP TMS9928A_configure(m_vdp_intf); // configure RAM switch (ram_get_size(m_ram)) { case 4*1024: program->unmap_readwrite(0x8000, 0xffff); break; case 36*1024: break; case 68*1024: break; } // register for state saving state_save_register_global(machine(), m_fd5_data); state_save_register_global(machine(), m_fd5_com); state_save_register_global(machine(), m_intra); state_save_register_global(machine(), m_ibfa); state_save_register_global(machine(), m_obfa); }
static MACHINE_START( forte2 ) { TMS9928A_configure(&tms9928a_interface); forte2_input_mask = 0xff; /* register for save states */ state_save_register_global(machine, forte2_input_mask); }
void sg1000_state::machine_start() { /* configure VDP */ TMS9928A_configure(&tms9928a_interface); /* toggle light gun crosshair */ machine().scheduler().timer_set(attotime::zero, FUNC(lightgun_tick)); /* register for state saving */ state_save_register_global(machine(), m_tvdraw_data); }
static MACHINE_START( forte2 ) { forte2_state *state = machine.driver_data<forte2_state>(); TMS9928A_configure(&tms9928a_interface); state->m_input_mask = 0xff; /* register for save states */ state_save_register_global(machine, state->m_input_mask); machine.state().register_postload(forte2, NULL); }
/* MDRV_SPEAKER_STANDARD_MONO("mono") MDRV_SOUND_ADD(AY8912, 1500000) MDRV_SOUND_CONFIG(ay8912_interface) MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) */ MACHINE_DRIVER_END static DRIVER_INIT( kingpin ) { static UINT8 *code_base; TMS9928A_configure(&tms9928a_interface); /* Hacks to keep the emu a'runnin */ code_base = memory_region(REGION_CPU1); code_base[0x17d4] = 0xc3; /* Maybe sound related? */ }
ROM_END /************************************* * * Driver initialization * *************************************/ static DRIVER_INIT( sg1000a ) { TMS9928A_configure(&tms9928a_interface); }
static MACHINE_START( pachifev) { /* configure VDP */ TMS9928A_configure(&tms9928a_interface); { pachifev_state *state = machine.driver_data<pachifev_state>(); state->save_item(NAME(state->m_power)); state->save_item(NAME(state->m_max_power)); state->save_item(NAME(state->m_input_power)); state->save_item(NAME(state->m_previous_power)); state->save_item(NAME(state->m_cnt)); } }
void sf7000_state::machine_start() { /* configure VDP */ TMS9928A_configure(&tms9928a_interface); /* configure memory banking */ memory_configure_bank(machine(), "bank1", 0, 1, machine().region(Z80_TAG)->base(), 0); memory_configure_bank(machine(), "bank1", 1, 1, ram_get_ptr(m_ram), 0); memory_configure_bank(machine(), "bank2", 0, 1, ram_get_ptr(m_ram), 0); /* register for state saving */ state_save_register_global(machine(), m_keylatch); state_save_register_global(machine(), m_fdc_irq); state_save_register_global(machine(), m_fdc_index); }
ROM_END /************************************* * * Driver initialization * *************************************/ static DRIVER_INIT( cliff ) { video_texture = NULL; overlay_texture = NULL; last_video_bitmap = NULL; TMS9928A_configure(&tms9928a_interface); add_exit_callback(machine, video_cleanup); }
static MACHINE_START(tutor) { TMS9928A_configure(&tms9929a_interface); }
ROM_END DRIVER_INIT( sg1000a ) { TMS9928A_configure(&tms9928a_interface); }
static MACHINE_START( coleco ) { TMS9928A_configure(&tms9928a_interface); return 0; }