void legacy_memory_device_base::device_config_complete() { m_space_config.m_name = "memory"; m_space_config.m_endianness = static_cast<endianness_t>(get_legacy_int(DEVINFO_INT_ENDIANNESS)); m_space_config.m_databus_width = get_legacy_int(DEVINFO_INT_DATABUS_WIDTH); m_space_config.m_addrbus_width = get_legacy_int(DEVINFO_INT_ADDRBUS_WIDTH); m_space_config.m_addrbus_shift = get_legacy_int(DEVINFO_INT_ADDRBUS_SHIFT); m_space_config.m_logaddr_width = m_space_config.m_addrbus_width; m_space_config.m_page_shift = 0; m_space_config.m_internal_map = reinterpret_cast<address_map_constructor>(get_legacy_fct(DEVINFO_PTR_INTERNAL_MEMORY_MAP)); m_space_config.m_default_map = reinterpret_cast<address_map_constructor>(get_legacy_fct(DEVINFO_PTR_DEFAULT_MEMORY_MAP)); }
void legacy_device_base::device_stop() { if (started()) { device_stop_func stop_func = reinterpret_cast<device_stop_func>(get_legacy_fct(DEVINFO_FCT_STOP)); if (stop_func != NULL) (*stop_func)(this); } }
void legacy_device_base::device_reset() { device_reset_func reset_func = reinterpret_cast<device_reset_func>(get_legacy_fct(DEVINFO_FCT_RESET)); if (reset_func != NULL) (*reset_func)(this); }
void legacy_device_base::device_start() { device_start_func start_func = reinterpret_cast<device_start_func>(get_legacy_fct(DEVINFO_FCT_START)); assert(start_func != NULL); (*start_func)(this); }
void legacy_device_base::device_validity_check(validity_checker &valid) const { device_validity_check_func validity_func = reinterpret_cast<device_validity_check_func>(get_legacy_fct(DEVINFO_FCT_VALIDITY_CHECK)); if (validity_func != NULL) (*validity_func)(&mconfig().gamedrv(), this, mconfig().options()); }
void legacy_nvram_device_base::nvram_write(emu_file &file) { device_nvram_func nvram_func = reinterpret_cast<device_nvram_func>(get_legacy_fct(DEVINFO_FCT_NVRAM)); (*nvram_func)(this, &file, TRUE); }
void legacy_nvram_device_base::nvram_default() { device_nvram_func nvram_func = reinterpret_cast<device_nvram_func>(get_legacy_fct(DEVINFO_FCT_NVRAM)); (*nvram_func)(this, NULL, FALSE); }
bool legacy_device_base::device_validity_check(emu_options &options, const game_driver &driver) const { device_validity_check_func validity_func = reinterpret_cast<device_validity_check_func>(get_legacy_fct(DEVINFO_FCT_VALIDITY_CHECK)); if (validity_func != NULL) return (*validity_func)(&driver, this, options); return false; }