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,609 of 4,675   
   R.Wieser to All   
   Re: EXE program stack setup questions   
   18 Oct 18 08:13:42   
   
   From: address@nospicedham.not.available   
      
   Steve,   
      
   > A. If you change SP for a tiny model program to 100H then you will   
   > overwrite the PSP and corrupt your program.   
      
   Go take a look at the PSP, and tell me what is present in the area   
   0080...00FF  Would it matter if it got fully overwritten ?   
      
   Than take a look at 0053...007F   Are you still using FCBs ?   
      
   In other words, you can trash the area from 0053 upto 00FF as much as you   
   like without crashing the program.  Thats a 56 element stack area.   Most   
   always enough for my COM program needs.   
      
   > B. The stack pointer points to the end of the stack segment which   
   > is the same exact segment as every other segment register.   
      
   For COM style programs, yes.  For EXE style ?   Well. I allready told you   
   that that isn't always the case (and when). I have no idea why you are   
   ignoring that. :-(   
      
   > The best way to change SS is [snip]   
      
   Thats the wrong direction.  I need SS to stay ontop of CS, not to move away   
   from it.   
      
   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