F$STime

From NitrOS-9
Revision as of 15:35, 5 April 2014 by Glaw16 (Talk | contribs) (Created page with '<div align="left"> {| |- valign="top" | '''Set Time''' | rowspan="2" | '''Sets the system time and date''' |- valign="top" | '''OS9 F$STime 103F 16''' |} </div> '''Entry Conditi…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Set Time Sets the system time and date
OS9 F$STime 103F 16

Entry Conditions

X relative address of the time packet

Error Output

CC carry set on error

B error code (if any)

Additional Information

  • Set Time sets the current system date and time and starts the system real-time clock. The date and time are passed in a time packet as follows:
Relative Address Value
0 year
1 month
2 day
3 hours
4 minutes
5 seconds

Then, the call makes a link system call to find the clock. If the link is successful, NitrOS-9 calls the clock initialization. The clock initialization:

  1. Sets up hardware dependent functions
  2. Sets up the F$Time system call via F$SSVc

krnp2 + Clock