1
0
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:
Mark Pizzolato
2020-10-29 13:28:41 -07:00
parent 9c1f4beae3
commit 263e0e7ed5
6 changed files with 9 additions and 9 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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);