INT 2F - AD-DOS - GET RESIDENT CODE SEGMENT
AX = 0C01h
ES = 0000h
Return: CF clear succesful
ES = AD-DOS TSR Code Segment
CF set if failed

See also: 2F0C00

2F0C01ES0000 - AD-DOS - GET RESIDENT CODE SEGMENT