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,599 of 4,675   
   Alexei A. Frounze to Mateusz Viste   
   Re: EXE program stack setup questions   
   16 Oct 18 03:19:00   
   
   From: alexfrunews@nospicedham.gmail.com   
      
   On Tuesday, October 16, 2018 at 3:10:06 AM UTC-7, Mateusz Viste wrote:   
   > On Tue, 16 Oct 2018 11:44:43 +0200, Terje Mathisen wrote:   
   > > For a Tiny model program, i.e. COM file, you cannot control this, you   
   > > will effectively always get a single 64K segment with SP pointing at a   
   > > 16-bit word == 0000.   
   >   
   > 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?   
      
   It will happily load a .COM program into less than 64KB.   
   I've seen it happen. I haven't checked how much of space   
   it would reserve for the stack though.   
      
   Alex   
      
   --- 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