Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 223

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Contents of B
o
1
2
Technical Information
RENAME
Rename a File (function code 47)
This routine changes the name and/or extension of a file. The password cannot be
changed.
Entry Conditions
A
=47
(HL)
=
Old file specification, followed by a carriage return. lffile is password-
protected, password must be included.
(DE)
=
New file specification followed by a carriage return. A password cannot
be used here (the old one will be retained).
Exit Conditions
NZ
Error occurred
A
Error Code
WILD
Wild Card Parser (function code 51)
This routine compares a file specification with a wild-card specification. For details
on wild-card specifications, use the Index.
Entry Conditions
B
=
Function Code:
Result
Set wild-card mask.
Compare file specification with mask
Combines a separate name and extension into a file
specification
When
B
=
0,
the other register contents are:
(HL)
=
Wild card mask,followed by a carriage return. A mask is a file
specification with asterisks inserted in one or more positions in the name
or extension. An asterisk means' 'one or more characters-don't care
what they are" . For example:
*
/BAS
masks all files except'those with the extension
/BAS.
*
LST
masks all files except those which have a filename ending in
LST
and no extension.
259

Advertisement

loading