Exemplo n.º 1
0
void device_rtc_interface::set_current_time(running_machine &machine)
{
	system_time systime;
	machine.base_datetime(systime);

	set_time(true, systime.local_time.year, systime.local_time.month + 1, systime.local_time.mday, systime.local_time.weekday + 1,
		systime.local_time.hour, systime.local_time.minute, systime.local_time.second);
}
Exemplo n.º 2
0
static void vg230_reset(running_machine &machine)
{
	pasogo_state *state = machine.driver_data<pasogo_state>();
	vg230_t *vg230 = &state->m_vg230;
	system_time systime;

	memset(vg230, 0, sizeof(*vg230));
	vg230->pmu.write_protected=TRUE;
	machine.base_datetime(systime);

	vg230->rtc.seconds= systime.local_time.second;
	vg230->rtc.minutes= systime.local_time.minute;
	vg230->rtc.hours = systime.local_time.hour;
	vg230->rtc.days = 0;

	vg230->bios_timer.data=0x7200; // HACK
}