Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 89

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRSDOS
$D
ATE
12339/X'3033'
$TIME—
12342/X'3036'
These
routines return the date
and
time
in
ascii format:
Date:
mm/dd/yy
Time:
hh/mm/ss
Entry
Conditions
(HL)
=
Eight-byte buffer
to
receive the date/time
text
CALL $DATE
CALL
$TIME
Exit
Conditions
(HL)
=
Date
or
time
text
$DATLOC
16922/X'421 A'
$TIMLOC
16919/X'4217'
These
locations
store the
date
and
time
in
binary format:
$datloc
(Three
bytes):
yy dd yy
$timloc
(Three
bytes):
ss
mm
hh
$ERRDSP—
17417/X'4409'
This
routine displays a
trsdos
error
message
determined
by
the
contents of
the
accumulator
(A).
This
register
contains
an
error
code
(0
=
no
error) after
completion of any system
routine.
Entry
Conditions
a
=
trsdos
error
code
(see
Table
at
the
end
of
this
section).
In a
trsdos
error
code,
bits
6 and
7
are
normally
reset
(off).
So
serrdsp
interprets
them
as
controls.
Not
Set
(Normal
Bit
#
Set
Condition)
7
Return
to caller
upon
Return
to
trsdos upon
completion
completion
6
Give
detailed error
message
Give
error
number
only
call $errdsp
87

Advertisement

loading