For a bit of fun I thought I would start writing my own emulator for the 80286. I have been reading a bunch about the topic. I thought for simplicity I would start with a really simple COM executable from the example COM a DOS executable walkthrough [1]. I understand that COM files are loaded directly into memory as is. What I am unclear on is where the stack should be created. Should I create the stack in a new segment? I am guessing I must as the segment with the data and code loaded.Appreciate any pointers to resources as well.
How does a .COM file get loaded for execution
assembly;ms dos