4 ms·
It's worth noting that all the memory models have DS=SS, which makes sense for C (where you often take the address of a local variable - though nothing is stopp
by o11c 2y ago
It's worth noting that all the memory models have DS=SS, which makes sense for C (where you often take the address of a local variable - though nothing is stopping you from having a separate "data stack" for those) but is a silly restriction for some other languages.
I'm sure someone took advantage of this, but my knowledge is purely theoretical.
- xxs 2y agoI never had SS=DS in Assembly. Used it for TSR for example.
- AshamedCaptain 2y agoIt's not necessarily true. Many drivers, TSRs and libraries (e.g. all Win16 DLLs) cannot assume that ds=ss. This makes C programming a bit more entertaining...
- garaetjjte 2y agoRelated: http://www.os2museum.com/wp/tracking-down-a-bug/ http://www.os2museum.com/wp/tracking-down-a-bug/
- o11c 2y agoWell, if so that's out of the standard models (at least, the ones that assume fixed DS).
- deleted 2y ago[deleted]