EasyManua.ls Logo

Radio Shack TRS-80 Model III - Real-Time Clock

Radio Shack TRS-80 Model III
274 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
OPERATION
10 /
Real-Time
Clock
The Model III
contains
a
real-time clock. It
is always running, except
during
cassette and disk I/O and
during certain other
operations
.
The clock keeps
the following
information in memory:
Abbrev.
MO
DA
YR
HR
MN
SS
The clock includes
the logic for
28 ,
30 and 3
1
-day months
.
It does not recognize leap
years
.
When you start the
Computer, the clock is set to
all zeroes:
00/00/00 00:00:00
Range of
Values
Memory Location
Month 01
-
12 16924
Day
01
-31
16923
Year
00
-
99
16922
Hour
00-23
16921
Min.
00-59
16920
Sec.
00
-
59
16919
To Set the
Clock
Simply store the
appropriate data in the
memory addresses
given above. You may
do
this
by
running
the following
program:
10 DEFINT
A-Z
20 DIM
TM(5)
30 CL
=
16924
40 PRINT
"INPUT
50 INPUT
TM<0>»
TM<1>»
60 FOR I
=
TO 5
70
POKE
CL
80 NEXT I
90 PRINT
"CLOCK
IS
SET"
100
END
6 VALUES: MO?
"M<2>
i
I
»
TM (
I
)
DA?
YR?
HR? MN, SS"
TM<3>»
TM<4>?
TM(5)
53

Other manuals for Radio Shack TRS-80 Model III

Related product manuals