home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,608 of 4,675   
   R.Wieser to All   
   Re: EXE program stack setup questions   
   18 Oct 18 08:21:29   
   
   From: address@nospicedham.not.available   
      
   Rick,   
      
   > There's no way to know how much memory is there though.   
      
   Actually, there is:  just look into the MCB preceeding the PSP.  The second   
   and third bytes hold the size (in segments) of the allocated block.   
      
   Its just that resizing by using INT 21 AH=4Ah swats two flies in one go: It   
   either gives you what you want (and thats that), or when failing tells you   
   whats left (and you can either bail out or try to remedy the problem).   
      
   Regards,   
   Rudy Wieser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca