home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / Libraries / File / s / Date next >
Encoding:
Text File  |  1993-07-31  |  1.1 KB  |  40 lines

  1. ;
  2. ;   ####             #    #     # #
  3. ;   #   #            #    #       #          The FreeWare C library for
  4. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  5. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  6. ;   #   # ####  ###  ##   #     # #  #
  7. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  8. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9. ;   ________________________________________________________________________
  10. ;
  11. ;   File:    File.s.Date
  12. ;   Author:  Copyright © 1993 Jason Howat
  13. ;   Version: 1.00 (31 Jul 1993)
  14. ;   Purpose: SWI veneer for file operations - read datestamp
  15.  
  16.         GET     h.regdefs
  17.         GET     h.swinos
  18.         GET     h.macros
  19. ;
  20.         PREAMBLE
  21.         STARTCODE File_Date
  22. ;
  23. ; extern void File_Date(char *filename, char *fivebyteblock);
  24. ;
  25.         STMFD   sp!, {a2,v1,v2,lr}
  26.  
  27.         MOV     a2, a1
  28.         MOV     a1, #17
  29.  
  30.         SWI     SWI_OS_File + XOS_Bit
  31.  
  32.         LDMFD   sp!, {a2,v1,v2,lr}
  33.  
  34.         STR     a4, [a2],#4
  35.         STRB    a3, [a2]
  36.  
  37.         MOVS    pc, lr
  38. ;
  39.         END
  40.