Difference between SHL and SAL in 80x86

前端 未结 7 1568
有刺的猬
有刺的猬 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:18

    actually both are same ..! but SAL Used when numeric multiplication is intended EXAMPLE SAL:

    Multiply AX by 8
    MOV CL, 3
    SAL AX, CL
    

    BOTH ARE MOSTLY WORK SAME AND HAVE SAME MACHINE CODE

提交回复
热议问题