Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.development    |    Operating system development chatter    |    4,255 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,372 of 4,255    |
|    mutazilah@gmail.com to Joe Monk    |
|    Re: segmentation    |
|    24 Oct 22 14:44:46    |
      From: muta...@gmail.com              On Tuesday, October 25, 2022 at 2:41:20 AM UTC+8, Joe Monk wrote:       > > No. Right from boot time, you are required to load the stack       > > segment, as there is no guarantee that that is set to a sensible       > > value. Nor is DS.              > Says who?              I can't remember, but even the values of CS and IP are not       guaranteed. It is only the combined values that are       guaranteed to point to a particular location.              Also DL is guaranteed.              > At power on, the processor begins execution from location 0xFFFF0.       > So, if my program can execute in 64k, then I dont need to do anything       > with loading segment registers.              Even if that were true, that would be the BIOS, not "your program".              "your program" (not even an OS) will likely be running       under MSDOS, where you are relying on MSDOS to set the       segment registers for you.              > And BTW, if you go look at the original PC BIOS, you will see       > that it executes without loading any segment registers...              I bet that it loads ss and ds. Or relies on the hardware to       set them.              BFN. Paul.              --- 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