bilsch01
2019-11-19 08:27:17 UTC
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.
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.