This routine allows the onboard CMOS clock to be set. For systems without a CMOS clock, the MOS passes the calls to sideways ROM's for support.
The first byte of the parameter block is a function code representing the action required. The rest of the block's content (including its size) depends on that function.
Function | Action | Format of input |
---|---|---|
8 | Set time | "HH:MM:SS" |
16 | Set date | "Day,DD Mon Year" |
24 | Set date and time | "Day,DD Mon Year.HH:MM:SS" |