◄Map► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── ;* GetPSP - Gets address of Program Segment Prefix. For DOS 3.0 or higher. ;* ;* Shows: DOS Function - 62h (Get PSP Address) ;* ;* Params: None ;* ;* Return: Short integer with PSP segment address ;* or 0 if DOS version below 3.0 GetPSP PROC INVOKE GetVer ; Get DOS version number .IF ax >= 300 ; If DOS 3.0 or higher: mov ah, 62h ; Query DOS for PSP int 21h ; Get PSP Address mov ax, bx ; Return in AX .ELSE ; Else 2.0: sub ax, ax ; For version 2, return 0 .ENDIF ret GetPSP ENDP -♦-