qdosmsq:vectors:datil

Differences

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

Link to this comparison view

qdosmsq:vectors:datil [2009/02/25 11:02] (current)
george.gwilt created
Line 1: Line 1:
 +====== -/CV_DATIL - Vector $D6 ======
 +
 +This vector converts date and time into a long integer.
 +^Call Parameters^^Return Parameters^^
 +|D1.L|Unused |D1.L|Date.|
 +|A1.L|Pointer to buffer. |A1.L|Corrupted.|
 +
 +===== Errors =====
 +No errors are returned by this vector call.
 +
 +===== Notes =====
 +  * All registers not shown above are not used on entry and are preserved on exit.
 +  * This routine works on SMSQ but not on a standard QL.
 +  * A1 points to a buffer six words long containing year, month, day, hour, minute and second.
 +  * D1.L contains the date in the usual long word format.
 +
 +===== Example =====
 +The example below shows the use of this vector.
 +
 +<​code>​
 +dte     ​dc.w ​   2009            ; Year
 +        dc.w    2               ; Month
 +        dc.w    24              ; Day
 +        dc.w    10              ; Hour
 +        dc.w    57              ; Minute
 +        dc.w    0               ; Second
 +
 +Get_dt ​ lea     ​dte,​a1 ​         ; Date in year, month etc form.
 +        move.w ​ CV_DATIL,​a2 ​    ; CV_DATIL vector address.
 + jsr (a2) ;​ Set date in D1.L.
 +
 +</​code>​
 +
  
  • qdosmsq/vectors/datil.txt
  • Last modified: 2009/02/25 11:02
  • by george.gwilt