QDOS Internals

Anything you never knew you wanted to know about the Sinclair QL.

User Tools

Site Tools


qdosmsq:traps:trap_1:rrtc

MT_RCLCK/SMS_RRTC

This trap reads the real-time clock.

Call ParametersReturn Parameters
D0.B$13D0.LCorrupted?
D1.L D1.LTime (internal form).
D2.L D2.LCorrupted.
A0.L A0.LCorrupted.

Errors

No errors are returned by this trap.

Notes

  • All registers not shown above are not used on entry and are preserved on exit.
  • The number returned in D1.L is the number of seconds since 00:00 1st January 1961.
  • Note that the vectors CN_DATE and CN_DAY can be used to convert the date to ASCII.

Example

The example here shows the use of this trap call.

qdosmsq/traps/trap_1/rrtc.txt · Last modified: 2009/02/25 16:18 by george.gwilt