home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / OSBORNE / CLOCK.LBR / -CLOCKLB.DZC / -CLOCKLB.DOC
Text File  |  2000-06-30  |  2KB  |  40 lines

  1. -CLOCKLB.DOC
  2.  
  3. This library contains code for 3 programs -- OCLOCKRV.ASM, source for
  4. Michael M. Rubenstein's OCLOCK.COM, a C profiler; CLOCK.ASM, source
  5. for a resident, realtime, software-clock on the Osborne 1; and
  6. WHEN.ASM, a program which prints the current date and time and to the
  7. screen.  Each is extensively commented.   Also included are
  8. Rubenstein's documentation for OCLOCK.COM and this note.
  9.  
  10. Setting time and date is left to the user.  DATTIM.COM, a proprietary
  11. program bundled with SuperCalc for the Osborne (and others?), offers
  12. one method, but it would be trivial to write a program designed to
  13. poke user-designated values for date and time into basepage memory at
  14. 010H thru 014H.  MONTH, DAY, YEAR, HOURS and MINUTES are each stored,
  15. in that order, as a single byte in Binary Coded Decimal format.  No
  16. separators are stored.  Those are provided by WHEN.ASM.
  17.  
  18. CLOCK.ASM is designed to relocate a portion of itself, embedded in the
  19. executable code, to free RAM in high memory, and to diddle some
  20. vectors so that the clock portion executes (essentially) constantly. 
  21. Once adapted to your particular system, and executed, CLOCK remains
  22. resident until the system is turned off, or cold-booted.  I have found
  23. it convenient to include it in among the programs executed by an alias
  24. which runs on each cold-boot.  Also included in that alias is a
  25. routine to ask the user to set date and time.
  26.  
  27. WHEN is a transient, executed at the users request. It could also be
  28. made memory resident, executed upon receipt of some escape sequence.
  29.  
  30. As noted elsewhere, CLOCK and WHEN grow out of the hard work of many
  31. people, but this note would be inadequate if it failed to explicitly
  32. mention the extensive input, insights, and corrections provided by
  33. Barry Siegfried, K2MF, of New York City.
  34.  
  35. Walt Wheeler
  36. Yankee Osborne Users
  37. 365 Edgewood Avenue
  38. New Haven, CT.  
  39. 12/29/87 
  40.