summaryrefslogtreecommitdiff
path: root/doc/ecall.txt
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-11-14 13:17:24 -0600
committercheapie <cheapiephp@gmail.com>2026-11-14 13:17:24 -0600
commit69cc4505f0ea31d3893847d8e127ac2d2ed59749 (patch)
treea08c08eead410b08b1b58542790311fa15a51846 /doc/ecall.txt
parente1b0b4dcbd5991768b408958632aad1e4cc1fe8d (diff)
downloadrvcontroller-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/ecall.txt')
-rw-r--r--doc/ecall.txt21
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.