Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!mattd From: mattd@Apple.COM (Matt Deatherage) Newsgroups: comp.sys.apple2 Subject: Re: Applesoft memory help Message-ID: <53318@apple.Apple.COM> Date: 24 May 91 22:52:22 GMT References: <26276@know.pws.bull.com> Organization: Apple Computer Inc., Cupertino, CA Lines: 24 In article <26276@know.pws.bull.com> aq696@cleveland.Freenet.Edu (Charles Perlingiero) writes: > >First, the locations in ProDOS that contain the minute and the hour will >not change while a program is running, why? I wanted to have a clock >routine in my program, but these locations (49042=minute, 49043=hour) do not >update when the program is running. Also, does anyone know if there is >a second location? I'm sure ProDOS reads the clock continuously, but how >can I access it? > >| Charles Perlingiero | Interests: Apple II's & Guitars | It doesn't read the clock continuously -- to do so would be a waste of CPU time because ProDOS only needs the time when a ProDOS call is made. It updates the time in the global page whenever a ProDOS MLI call is made. In assembly, the easiest thing to use is the GET_TIME call which does nothing but update the time on the global page. From BASIC, PRINT CHR$(4)"FLUSH" will accomplish the same thing (even if no files are open). -- ============================================================================ Matt Deatherage, Developer Technical | The opinions expressed herein are Support, Apple Computer, Inc. | not those of Apple Computer, and Personal mail only, please. Thanks. | shame on you for thinking otherwise. ^^^^^^^^ Technical questions are not personal. Please post them instead. ============================================================================