mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
AltairZ80, BESM6, I7094: Adopt internal SCP internal time base
This commit is contained in:
@@ -1774,7 +1774,7 @@ static int32 simh_out(const int32 port, const int32 data) {
|
||||
break;
|
||||
|
||||
case getClockZSDOSCmd:
|
||||
time(&now);
|
||||
sim_get_time(&now);
|
||||
now += ClockZSDOSDelta;
|
||||
currentTime = *localtime(&now);
|
||||
currentTimeValid = TRUE;
|
||||
@@ -1786,7 +1786,7 @@ static int32 simh_out(const int32 port, const int32 data) {
|
||||
break;
|
||||
|
||||
case getClockCPM3Cmd:
|
||||
time(&now);
|
||||
sim_get_time(&now);
|
||||
now += ClockCPM3Delta;
|
||||
currentTime = *localtime(&now);
|
||||
currentTimeValid = TRUE;
|
||||
|
||||
@@ -379,7 +379,7 @@ unsigned int m68k_cpu_read_long(unsigned int address) {
|
||||
case DISK_STATUS:
|
||||
return hdsk_getStatus();
|
||||
case M68K_GET_TIME:
|
||||
return (unsigned int)(time(NULL));
|
||||
return (unsigned int)(sim_get_time(NULL));
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -378,7 +378,7 @@ static uint8 SS1_Read(const uint32 Addr)
|
||||
" RD: RTC Cmd=0x%02x.\n", PCX, cData);
|
||||
break;
|
||||
case SS1_RTC_DATA:
|
||||
time(&now);
|
||||
sim_get_time(&now);
|
||||
now += ss1_rtc[0].clockDelta;
|
||||
currentTime = *localtime(&now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user