NEC CP/M-86 System Reference Manual page 53

Advanced personal computer
Table of Contents

Advertisement

Basic Disk Operating System (BDOS) Functions
The Rename File function changes all directory entries of the file specified by the file
name in the first 16 bytes of the FCB addressed by D X to the file name in the second
16 bytes.
It
is the user's responsibility to insure that the file names specified are
valid, unambiguous, CP/M file names. The drive code "dr" at position 0 is used to
select the drive, while the drive code for the new file name at position 16 of the FCB
is ignored. Register AL returns a value of zero if the rename was successful and
OFFH (255 decimal) if the first file name could not be found in the directory scan.
RETURN LOGIN VECTOR
ENTRY
CL: 18H
BX: Login
Vector
FUNCTION 24
RETURN LOGIN
VECTOR
RETURN
BX: Login Vector
The Return Login Vector function returns the login status for up to 16 disk drives in
a login vector. The login vector is a 16-bit value in register BX. The least significant
bit corresponds to the first drive, labelled A, and the high order bit corresponds to
the sixteenth drive, labelled P. (The APC currently supports 8 drives). A "0" bit
indicates that the drive is not online. A "1" bit marks a drive that is actively online
due to an explicit disk drive selection or an implicit drive select caused by a file
operation which specified a non-zero "dr" field.
RETURN CURRENT DISK
ENTRY
CL: 19H
FUNCTION 25
. RETURN CURRENT
DISK
RETURN
AL: Current Disk
The Return Current Disk function returns the currently selected default disk
number in register AL. The disk numbers range from 0 through 15, corresponding
to Drives A through P. Drives A through H (0 through 7) are currently supported
on the APC.
4-19

Advertisement

Table of Contents
loading

Table of Contents