This trap reads or sets a file's date.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $4C | D0.L | Error code. |
D1.L | Set/read key. | D1.L | Date. |
D2.B | Type date key. | D2.L | Preserved. |
D3.W | Timeout. | D3.L | Preserved. |
A0.L | Channel ID. | A0.L | Preserved. |
Any IOSS errors.
The example below shows the use of this trap call to read a file's backup date. It is assumed that the channel ID is in A0.L.
moveq #$4C,d0 ; IOF_DATE moveq #-1,d1 ; Read date moveq #2,d2 ; Backup date moveq #-1,d3 ; Timeout trap #3 ; Get the backup date to D1.L tst.l d0 ; OK? . . bne.s oops ; . . NO! ... ; Do something here.