Hi Charles,
would this little function be ok? I get the expected results but I am not sure if I will need a pushad / popad.
function arshift(int d, c)
mov eax, d 'dest
mov ecx, c 'count
sar eax, ecx 'SAR shift arithmetic right
return eax
end function
Using the second (not(not..) approach it seems to me that I only get the logical value for right shift e.g. 536870910 instead of -2 for a=-15, b=3. Am I doing something wrong?
Roland