SHL destination,count
该指令可用的操作数类型如下所示:
SHL reg, imm8
SHL mem, imm8
SHL reg, CL
SHL mem, CL
mov b1, 8Fh ; BL = 10001111b
shl bl, 1 ; CF = 1, BL = 00011110b
mov al, 10000000b
shl al, 2 ; CF = 0, AL = 00000000b
mov dl, 5 ; 移动前:00000101 = 5
shl dl, 1 ; 移动后:00001010 = 10
mov dl, 10 ;移动前:00001010
shl dl, 2 ;移动后:00101000
本文链接:http://task.lmcjl.com/news/16204.html