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,352 of 4,255    |
|    mutazilah@gmail.com to Joe Monk    |
|    Re: segmentation    |
|    23 Oct 22 12:01:33    |
      From: muta...@gmail.com              On Sunday, October 23, 2022 at 10:50:15 PM UTC+8, Joe Monk wrote:       > > If not, what's the issue?       > >       > It doesnt work - It breaks segmentation.       >       > 0x5555 = 0101010101010101       >       > 0x0005 = 0000000000000101       >       > So adding those two to get 21 bits ...       >       > Shifting 0x5555 5 bits left gives 0X0AAAA0       >       > Adding 0x0005 gives ...       >       > I get 0x0AAAA5       >       > 0x5333 = 0101001100110011       >       > 0x2225 = 0010001000100011       >       > Adding those two to get 21 bits ...       >       > Shifting 0x5333 5 bits to the left gives 0x0A6660       >       > Adding 0x2225 gives...       >       > I get 0x0A8885              Crikey. Talk about a misunderstanding.              Now repeat the above calculations using these values:              0x5555:0x0005 vs 0x5333:0x0a71              Segmentation isn't broken, it's just different. That's       the entire point of the proposal.              BFN. Paul.                                   C:\>hex2dec 5555       21845              C:\>zcalc 21845*32+5       Calculated Value is 699045.000000       Thank you for using the calculator              C:\>dec2hex 699045       aaaa5              C:\>hex2dec 5333       21299              C:\>zcalc 599045%21299       Calculated Value is 2673.000000       Thank you for using the calculator              C:\>dec2hex 2673       a71              --- 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