mirror of
https://github.com/PDP-10/its.git
synced 2026-01-31 05:52:12 +00:00
Fix bug in programs when system time not set.
- DATE - DATSRV - TIME
This commit is contained in:
@@ -69,6 +69,10 @@ RETRY: MOVEI A,10.
|
||||
CAIG B,
|
||||
JSR AUTPSY ; Timed out...
|
||||
SERVE: .RDATE DATE,
|
||||
CAMN DATE,[-1]
|
||||
JRST [ SEND [SIXBIT /TIME @/]
|
||||
SEND [SIXBIT /UNSET@/]
|
||||
JRST CRLF ]
|
||||
LDB A,[360400,,DATE] ; First digit of year
|
||||
IMULI A,10.
|
||||
LDB B,[300400,,DATE] ; Second digit of year
|
||||
@@ -111,7 +115,7 @@ CAL2: ADDI A,5 ; Century starts on a Saturday
|
||||
AND B,DATE
|
||||
TLO B,'@
|
||||
SEND B
|
||||
.IOT NETO,[15] ; CR
|
||||
CRLF: .IOT NETO,[15] ; CR
|
||||
.IOT NETO,[12] ; LF
|
||||
.NETS NETO, ; Force the output.
|
||||
.CLOSE NETO, ; Disconnect.
|
||||
Reference in New Issue
Block a user