The trap MT_SCLCK/SMS_SRTC sets the clock while the trap MT_ACLCK/SMS_ARTC adjusts the clock.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $14 or $15 | D0.L | Corrupted? |
D1.L | Time in seconds. | D1.L | Time in seconds. |
D2.L | D2.L | Corrupted. | |
D3.L | D3.L | Corrupted. | |
A0.L | A0.L | Corrupted. |
No errors are returned by this trap.
The example below shows the use of this trap call to add 1 hour to the clock.
adj_1h move.l #60*60,d1 ; The number of seconds in 1 hour. moveq #MT_ACLCK,d0 ; Adjust the clock. trap #1 ; The later time in now in D1.L.