EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 64

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...
TRS-80
MODEL III
To
Read
the Clock
The Model III
includes a built-in
BASIC
function, TIMES,
to get the time
in a 1 7-byte
string . For
example ,
execute the
BASIC statement:
PRINTTIME$
To display
the time.
To
Display
the Clock
in
Real-Time
You
can turn on a
continuously
updated clock display .
The
current time
(not the
date)
will be
displayed in columns
57
-
64,
regardless of what
mode the
BASIC is in:
Immediate, Execute,
Edit, or System. As
long as the
clock is
running, it
will be
updated on the
display.
To enable
the clock display,
call the ROM
subroutine
SCLKON at
address 664. To
disable it,
call the ROM
subroutine SCLKOFF at
673.
The following
BASIC program
shows how to
turn the
display on and off.
Each time
you want to switch it
on or off, run the
program
.
Note:
To calculate the
most significant
and least
significant bytes
of a decimal
number,
use this formula:
MSB
=
integer
portion
of
(number/256)
LSB
=
number
-
(MSB
*
256)
For example,
decimal address 661 can be
broken
down this way:
MSB
=
integerportion
of
(66
1/256)
=
2
LSB
=
667
-
(2
*
256)
=
152
54

Other manuals for Radio Shack TRS-80 Model III

Related product manuals