The LazyBoy Library Manual - GetBootDrive

Part of the Drive and directories group.

%imacro GetBootDrive 1
Prefers: AL

Return the system boot drive. Drives are numbered 0x00=A, ...

Note, some DOS versions always report the same drive letter regardless of the actual disk that system used to boot.

Example:

    GetBootDrive AL     ; get the boot drive