News for hackers. Stuff that matters.
Re:Revisiting the DOS Memory Models by o11c on Tuesday November 26, 2024 @01:10AM (#42242965)
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.

Re:Revisiting the DOS Memory Models by xxs on Tuesday November 26, 2024 @02:16AM (#42243262)
I never had SS=DS in Assembly. Used it for TSR for example.
Re:Revisiting the DOS Memory Models by AshamedCaptain on Tuesday November 26, 2024 @04:28AM (#42243996)
It'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...
Re:Revisiting the DOS Memory Models by garaetjjte on Tuesday November 26, 2024 @11:16AM (#42246969)
Re:Revisiting the DOS Memory Models by o11c on Tuesday November 26, 2024 @01:46PM (#42248617)
Well, if so that's out of the standard models (at least, the ones that assume fixed DS).