static int spec48_reset( void ) { int error; error = machine_load_rom( 0, 0, settings_current.rom_48, settings_default.rom_48, 0x4000 ); if( error ) return error; error = periph_setup( peripherals, peripherals_count ); if( error ) return error; periph_setup_kempston( PERIPH_PRESENT_OPTIONAL ); periph_setup_interface1( PERIPH_PRESENT_OPTIONAL ); periph_setup_interface2( PERIPH_PRESENT_OPTIONAL ); periph_setup_plusd( PERIPH_PRESENT_OPTIONAL ); periph_setup_beta128( PERIPH_PRESENT_OPTIONAL ); periph_setup_fuller( PERIPH_PRESENT_OPTIONAL ); periph_setup_melodik( PERIPH_PRESENT_OPTIONAL ); periph_update(); periph_register_beta128(); beta_builtin = 0; memory_current_screen = 5; memory_screen_mask = 0xffff; return spec48_common_reset(); }
int tc2068_tc2048_common_reset( void ) { memory_current_screen = 5; memory_screen_mask = 0xdfff; scld_dec_write( 0x00ff, 0x00 ); scld_hsr_write( 0x00f4, 0x00 ); return spec48_common_reset(); }
static int spec48_ntsc_reset( void ) { int error; error = machine_load_rom( 0, settings_current.rom_48, settings_default.rom_48, 0x4000 ); if( error ) return error; periph_clear(); machines_periph_48(); periph_update(); memory_current_screen = 5; memory_screen_mask = 0xffff; spec48_common_display_setup(); return spec48_common_reset(); }