mov bx, SegmentPSP ;segment address of new PSP
mov ah, 50h ;Set PSP Address
int 21h
Set PSP Address (Function 50h) sets the segment address of the program segment prefix (PSP) for the current program.
SegmentPSP
Specifies the segment address of the PSP for the current program.
This function has no return value.
Function 51h Get PSP Address