Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Pointer to rtctime structure |
Exit | |
---|---|
- | On success, rtctime struct updated |
R0 | Error pointer (on failure), preserved (on success) |
- | All other registers preserved |
The purpose of this call is to read the current time from the hardware RTC
An error will be returned if the read failed, or if the RTC is known to be in an invalid state (e.g. clock stopped)
To provide a full 4-digit year, the value read from the RTC may be augmented by the year stored in CMOS.
Rather than reading time from the RTC directly, most software should read the softcopy of the time that’s maintained by RISC OS, e.g. via OS_Word 14