diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-11-14 13:17:24 -0600 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-11-14 13:17:24 -0600 |
| commit | 69cc4505f0ea31d3893847d8e127ac2d2ed59749 (patch) | |
| tree | a08c08eead410b08b1b58542790311fa15a51846 /doc | |
| parent | e1b0b4dcbd5991768b408958632aad1e4cc1fe8d (diff) | |
| download | rvcontroller-69cc4505f0ea31d3893847d8e127ac2d2ed59749.tar rvcontroller-69cc4505f0ea31d3893847d8e127ac2d2ed59749.tar.gz rvcontroller-69cc4505f0ea31d3893847d8e127ac2d2ed59749.tar.bz2 rvcontroller-69cc4505f0ea31d3893847d8e127ac2d2ed59749.tar.xz rvcontroller-69cc4505f0ea31d3893847d8e127ac2d2ed59749.zip | |
Add ecall functions to get current date/time
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. |
