diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ecall.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/ecall.txt b/doc/ecall.txt index 02cdcab..9bfd553 100644 --- a/doc/ecall.txt +++ b/doc/ecall.txt @@ -72,4 +72,25 @@ a1 - Size of the buffer that the channel string will be written into a2 - Address that the message will be written to a3 - Size of the buffer that the message will be written into +a7(/15) = 136 +Returns a value in a0 containing (some aspect of) the current date and/or time. +The meaning of the returned value depends on the value of a0: +* 0 = Unix timestamp (low 32 bits) +* 1 = Unix timestamp (high 32 bits - this will be all zeroes until some time in 2106) +* 2 = Year +* 3 = Month +* 4 = Day +* 5 = Hour +* 6 = Minute +* 7 = Second + +a7(/a5) = 137 +Atomically reads the full time/date and returns values in a0-a5 as follows: +* a0 - Year +* a1 - Month +* a2 - Day +* a3 - Hour +* a4 - Minute +* a5 - Second + All values not listed are reserved. |
