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,137 of 4,255    |
|    wolfgang kern to James Harris    |
|    Re: Pushing and popping segment register    |
|    25 Mar 22 07:45:30    |
      From: nowhere@nevernet.at              On 23/03/2022 18:20, James Harris wrote:       [about segreg image on stack]       >       > It's curious that the Pentium switched to pushing four bytes but later       > processors switched back to writing just two. I'd have thought that       > writing four would be more efficient overall as the words of stacks are       > commonly accessed in sequence and it could prevent the processor having       > to read a fully written line into cache.       >       > AMD maybe behaves differently.              what I saw in the past on AMD were previous stack contents in the upper       word, but haven't checked on recent versions (it should read zeros now).              > Either way, the point remains: if code is to be portable then the upper       > two bytes of a segreg push cannot be relied upon.              Yes, that's it. And by any luck the upper word is rare needed anyway :)       __       wolfgang              --- 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