![]() |
UTILITY Make time for a time check by PAUL LAY |
|
THIS program provides an inter- rupt driven 12 hour clock which will appear in graphics Mode 0 at the top right hand corner of the display. In other modes it will be displayed at the top right hand corner of the text window if one is present. The clock is constantly dis- played but will be momentarily destroyed - for 1 /50th of a second - by any screen scrolling. It is protected against the system reset key but pressing this key results in the loss of a second or so. It is possible to turn the clock display off by POKEing a zero to location 1789 and it can be turned back on by POKEing any other value. Once the clock has been set it can be reset by running this program again and the user may continue normally. The only point to watch is that page 6 is not used as the clock routine is stored here. VARIABLES TEXT$ Indicates AM or PM. CHECKSUM Validation check on machine code data. LOCATION Loop over locations used by machine code. CODE One item of machine code. HOURS Hours. MINS Minutes. SECS Seconds. HI First digit of hours/mins/secs. LO Second digit of hours/mins/secs. |
|