Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!portal!cup.portal.com!Geva_Apple-Maniac_Patz From: Geva_Apple-Maniac_Patz@cup.portal.com Newsgroups: comp.sys.apple Subject: Re: Help! reading ProDos date (appleIIe) Message-ID: <16189@cup.portal.com> Date: 24 Mar 89 11:21:42 GMT References: <441@swbatl.UUCP> Organization: The Portal System (TM) Lines: 20 ProDOS stores its date in a slightly odd format. You can either use a MLI call to get it, or try your luck with reading the actual memory locations. The MLI call is GET_TIME, $82, and has no parameter list. The time is stored with the hours in $BF93 (49043), and the minutes in $BF92 (49042). Where things get just a little stickier is in the system date, which is Sostored over two consecutive memory locations, $BF91 and $BF90 (49041 and 49040, respectively). It's stored as a 16-bit word in low-byte, high-byte form, with the least significant 5 bits representing the day, the next four bits representing the month, and the most significant seven bits representing the year, like this: $BF91 $BF90 5 4 3 2 1 0 YYYYYYYYYYYYYYMMMMMMMMDDDDDDDDD Hope this helps, %%%% Geva %%%%