The system variables can be found for CP/M-86 1.1 (only) by BDOS function 49. This returns ES:BX pointing to an area of memory:
Offset Size Description ============================================================================ 00 DWORD DMA address 04 BYTE Current drive 05 BYTE Current user 06 WORD Directory entry number (used in Search Next) 08 BYTE Last BDOS function number involving disc access 09 WORD FCB for Search Next 0B WORD Segment of FCB for Search Next 0D BYTE Unused? 0E BYTE 0FFh if the BDOS is doing a disc call, else 0 0F DWORD Unused? 13 BYTE Control-P flag - nonzero to echo output to the printer 14 BYTE CCP drive 15 5 Unused? 1A BYTE Time: hours, BCD 1B BYTE Time: minutes, BCD 1C BYTE Time: seconds, BCD 1D 3 Day, 0-terminated ASCII 20 3 Month, 0-terminated ASCII 23 3 Year mod 100, 0-terminated ASCII 26 3 Hours, 0-terminated ASCII 29 3 Minutes, 0-terminated ASCII 2C 3 Seconds, 0-terminated ASCII 2F 0Eh Text to print on status line? 3D BYTE Screen width ===============================================================================Return to the archive listing