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,601 of 4,675   
   Steve to Mateusz Viste   
   Re: EXE program stack setup questions   
   16 Oct 18 13:30:30   
   
   From: Bogus@Embarq.com   
      
   Hi,   
      
   Mateusz Viste  writes:   
   >   
   >This may be a stupid question, but is the COM-allocated segment really   
   >guaranteed to be 64K in size? What if the largest contiguous available   
   >memory block is only, say, 48K in size? Would DOS refuse to load it   
   >instead of using whatever is possible?   
   >   
   >Mateusz   
      
      According to the Microsoft "MS-DOS Programmer's Reference",   
   Version 5, loading a *.COM program needs to allocate memory   
   to load the program, plus 256 bytes for the PSP, and 256 bytes   
   for the stack.  If it does not have that much memory it refuses   
   to load the program.  And the program, PSP, and stack must fit   
   into a 64k segment.   
      
   HTH,   
      
   Steve N.   
      
   --- 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