Mercurial > hg > Members > kono > nitros9-code
view lib/alib/getfmd.as @ 3220:9ccec98c9897
Updated IDE Driver makefile so it will have place holders for
dsk, dskclean, and dskcopy so that make does not error out when
chaining into the driver tree to build disk images where applicable.
author | David Ladd <drencor-xeen@users.sourceforge.net> |
---|---|
date | Wed, 20 Dec 2017 16:10:50 -0600 |
parents | 03f26e88b809 |
children |
line wrap: on
line source
************************************ * Get the "last modified" date of an open file * NOTE: Even though OS9 does not save seconds in its * files this routine stores a zero in this position. * This is done to make the routine compatible with * DATESTR. * OTHER MODULES NEEDED: none * ENTRY: X=buffer for 6 byte date * A=path of open file * EXIT: CC carry set if error * B error code (if any) from SS.FD nam Get Last Modified Date ttl Assembler Library Module section .text BUFSIZ equ 8 GETFMD: pshs x,y leas -BUFSIZ,s where to put FD sector info tfr s,x pointer for FD sector info ldy #BUFSIZ bytes to read from FD sector ldb #$0F SS.FD os9 I$GetStt bcs exit ldy BUFSIZ,s get back orig X ldx 3,s get 2 bytes stx ,y++ move year,month ldx 5,s stx ,y++ move date,hour lda 7,s sta ,y+ move minutes clr ,y null for seconds exit leas BUFSIZ,s puls x,y,pc endsect