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,672 of 4,675    |
|    Jim Leonard to R.Wieser    |
|    Re: EXE program stack setup questions    |
|    13 Nov 18 12:25:40    |
      From: mobygamer@nospicedham.gmail.com              On Monday, October 29, 2018 at 7:47:34 AM UTC-5, R.Wieser wrote:       > I've solved the problem (both the memory gobbling as well as the initial        > stack location) by patching, after generating the executable, the relevant        > fields in the EXE file header.              The real solution to your problem was to assemble and link a .COM file. There       is no point to a tiny model .EXE file, as the tiny model doesn't allow for       multiple segments which is the problem .EXE files were designed to solve. In       a .COM file, DOS loads        and sets up the environment directly as you requested in your first post (with       SS=CS, and SP=FFFE).              If you are following the code, data, data-uninitialized model then you should       also define a stack segment, but I didn't see that in the previous messages.              --- 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