Handle lack of RTC better

DSRTC driver now correctly returns an error if there is no RTC present.
This commit is contained in:
Wayne Warthen
2020-03-31 11:30:11 -07:00
parent 663a532967
commit 99dadbc17c
8 changed files with 50 additions and 41 deletions

View File

@@ -495,6 +495,7 @@ time$get:
ld b,020h ; HBIOS func: get time
ld hl,tim$buf ; time buffer
rst 08 ; do it
ret nz ; bail out on error
; convert yymmss in time buffer -> cpm3 epoch date offset
call date2cpm ; time buf (yr, mon, day) -> SCB (@date)