Download Print this page

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

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

Advertisement

TRSDOS
Entry
Conditions
(DE)
=
DCB
CALL $POSEOF
Exit
Conditions
z
=
Good
file
specification
nz
=
Bad
file
specification
$SYNTAX—
17436/X'441C'
Move
a
file
specification
to
dcb. This
routine takes a
file
specification
and
checks
it
for validity
and
moves
it
to
a
dcb
so
that
the
file
may
be opened.
Entry
Conditions
(HL)
=
Filename
(DE)
=
DCB
CALL $SYNTAX
Exit
Conditions
z
=
Good
file
specification
nz
=
Bad
file
specification
$DIVIDE
17489/X'4451
'
The
divide routine takes a
16-bit
dividend
and an
eight-bit divisor.
After
division, the
quotient replaces
the
16-bit
dividend
and
the
remainder
replaces the
eight-bit divisor.
Entry
Conditions
hl
=
Dividend
a
=
Divisor
CALL
$DIVIDE
Exit
Conditions
hl
=
Quotient
a
=
Remainder
(0 indicates
no
remainder).
83

Advertisement

loading