mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
Handle lack of RTC better
DSRTC driver now correctly returns an error if there is no RTC present.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user