System information

FUNCTION 12: RETURN VERSION NUMBER
Entry Parameters:
Register C: 0CH
Returned Value: Version Number
Registers HL:
Function 12 provides information that allows version independent programming. A two-byte
value is returned, with H = 00 designating the CP/M release (H = 01 for MP/M) and L = 00 for
all releases previous to 2.0. CP/M 2.0 returns a hexadecimal 20 in register L, with subsequent
version 2 releases in the hexadecimal range 21, 22, through 2F. Using Function 12, for example,
the user can write application programs that provide both sequential and random access
functions.
FUNCTION 13: RESET DISK SYSTEM
Entry Parameters:
Register C: ODH
The Reset Disk function is used to programmatically restore the file system to a reset state where
all disks are set to Read-Write. See functions 28 and 29, only disk drive A is selected, and the
default DMA address is reset to BOOT+0080H. This function can be used, for example, by an
application program that requires a disk change without a system reboot.
5.2 Call Conventions CP/M Operating System Manual
5-18