💾 Archived View for mirrors.apple2.org.za › archive › apple2.archive.umich.edu › apple2 › 8bit › doc… captured on 2024-12-17 at 23:09:54.

View Raw

More Information

-=-=-=-=-=-=-

      Some people have wanted to know how to read the //gs clock from
 BASIC.  The only "correct" way to read the //gs clock is by using one
 of two //gs tools. They are both in the Miscellaneous Tool set (#3) and
 are functions number 13 and 15.  ReadTimeHex and ReadASCIITime
 respectively.  The following is a short BASIC program that pokes a
 machine language program into memory.  The machine language program is
 used to call ReadASCIITime.  The ASCII time is stored at address
 00/0200 which is the text buffer (safe for temporary use) in the format
 selected from the control panel.  The time has been moved to 00/0200
 the BASIC program must more it byte by byte into a variable (T$).  The
 machine language program is completely relocatable, if you don't have
 page 3 free.