Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
setfree proc near
mov bx,ss ;first subtract the two segment addresses
mov ax,es ;from each other. The result is
sub bx,ax ;number of paragraphs from PSP
;to the beginning of the stack
mov ax,sp ;since the stackpointer is at the end of
mov cl,4 ;the stack segment, its content indicates
shr ax,cl ;the length of the stack
add bx,ax ;add to current length
inc bx ;as precaution add another paragraph
mov ah,4ah;pass new length to DOS
int 21h
ret ;back to caller
setfree endp
mov cl,4 ;the stack segment, its content indicates
shr ax,cl ;the length of the stack
file1.exe
Ax=0000 Bx=0000 Cx=000a Dx=0000 Sp=0400 Bp=Si=Di=0000
Ds=0b22 Es=0b22 Ss=0b33 Cs=0b32 Ip=0000 Flag Reg
file2.exe
Ax=0000 Bx=0000 Cx=0012 Dx=0000 Sp=0400 Bp=Si=Di=0000
Ds=0b22 Es=0b22 Ss=0b34 Cs=0b32 Ip=0000 Flag Reg
file3.exe
Ax=0000 Bx=0000 Cx=0038 Dx=0000 Sp=0400 Bp=Si=Di=0000
Ds=0b22 Es=0b22 Ss=0b36 Cs=0b32 Ip=0000 Flag Reg