The LazyBoy Library Manual - General DOS System

NOTE: All macros that are part of SYS do not require DS to be the program Data Segment. These macros general low level DOS or BIOS calls. These macros can be used before library initialization and do not require DS to equal CS.

Some basic DOS stuff:

GetEnvSegReturn the segment of environment table.
GetEnvTableReturn a pointer to environment variable table.
GetEnvKeyReturn a pointer to a variable in env table.
GetEnvValReturn a pointer to the value of a varible in env table.
GetExecNameReturn a pointer to the executable's file name.
GetExtendedBreakReturn the state of extended break checking.
GetSwitchCharReturn the command line switch character.
SetExtendedBreakChange the state of extended break checking.
SetSwitchCharChange the command line switch character.
GetSysDateGet the current system date.
GetSysTimeGet the current system time.
GetCmdLineGet command line parameter string.
CmdLineParserCommand line parameter string parser.
CmdLineOptionCommand line parser option table entry.

Miscellaneous stuff:

RandomGenerate a sort-of random number.
PtrToIntConvert a pointer to a 32-bit integer value.
IntToPtrConvert a 32-bit integer value to a pointer.
FlattenPtrReduce the offset of a pointer.