qdosmsq:vectors:ildat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:vectors:ildat [2009/02/25 15:53]
george.gwilt created
qdosmsq:vectors:ildat [2009/02/25 16:22] (current)
george.gwilt Link added
Line 23: Line 23:
 ===== Example ===== ===== Example =====
 The example below shows the use of these vectors to set the date followed by the day. We suppose that A6.L points to the data space. The example below shows the use of these vectors to set the date followed by the day. We suppose that A6.L points to the data space.
 +The example uses the trap #1 routine [[qdosmsq:​traps:​trap_1:​rrtc|MT_RCLCK]].
  
 <​code>​ <​code>​
 mst     ​equ ​    ​30+6 ​           ; Space for date and day. mst     ​equ ​    ​30+6 ​           ; Space for date and day.
  
-Get_dte moveq   #MT_CLCK,d0     ​; To read the clock.+Get_dte moveq   #MT_RCLCK,d0    ; To read the clock.
         trap    #1              ; D1.L contains the date.         trap    #1              ; D1.L contains the date.
         lea     ​mst,​a1 ​         ; End of stack.         lea     ​mst,​a1 ​         ; End of stack.
  • qdosmsq/vectors/ildat.txt
  • Last modified: 2009/02/25 16:22
  • by george.gwilt