Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,966 of 4,675    |
|    bilsch01 to All    |
|    using shrd instruction in 16-bit code    |
|    19 Nov 19 00:27:17    |
      From: king621@nospicedham.comcast.net              If I understand correctly for: shrd ax,dx,cl       ax gets shifted right, dx provides bits to shift into ax from left.       For a 32-bit number 3ffff in dx:ax       (in binary that's eighteen 1's in a row)       I try the following:              mov cl,2       mov dx,3       mov ax,0xffff       shrd ax,dx,cl       cmp dx,0       jne error              I thought dx would be shifted empty but it's not.              I can't use a debugger on these binary files.              Can someone tell me why. TIA Bill S.              --- 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