Difference between SHL and SAL in 80x86

前端 未结 7 1546
有刺的猬
有刺的猬 2020-12-17 08:56

I have learned how to work with 80x86 assembler, so in bit-wise shift operation, I faced a problem with SAL and SHL usage. I means the difference between lines of code as fo

7条回答
  •  借酒劲吻你
    2020-12-17 09:13

    shl and sal are the same.They have same machine code.
    shr and sar are NOT the same.They have almost same machine code.(but not)
    Check this.

提交回复
热议问题