Browse Source

ez80: report if RTC is not powered

pull/424/head
Dean Netherton 2 years ago
parent
commit
37a7574f1f
  1. 8
      Source/HBIOS/ez80rtc.asm

8
Source/HBIOS/ez80rtc.asm

@ -25,8 +25,14 @@ EZ80RTC_INIT:
LD A, 1 ; RTC FIRMWARE FUNCTION GROUP
LD B, 0 ; RTC INIT FUNCTION
EZ80_FN
; TODO VERIFY SUCCESS -> A IS ZERO
JR Z, RTC_POWERED
PUSH AF
PRTS("NOT POWERED$")
POP AF
RET
RTC_POWERED:
; DISPLAY CURRENT TIME
LD HL, EZ80RTC_BCDBUF_EXT ; POINT TO BCD BUF EXTENDED
LD A, 1 ; RTC FIRMWARE FUNCTION GROUP

Loading…
Cancel
Save