John Linville
Blogs

ASL/LSL — more defense of the obvious…

September 7, 2018 John Linville

In the previous post, I explained the difference of intent between “logical” and “arithmetic” shift operations in assembly language. I also demonstrated that for two’s complement binary numbers, the bitwise effects of logical-shift-left and arithmetic-shift-left are actually identical. This makes the choice to implement a single physical instruction that covers …