sal destination
sal %cl, destination
sal shifter, destination
.section .data
value1:
.int 25
.section .text
.global _start
_start:
nop
movl $10, %ebx
sall %ebx
movb $2, %cl
sall %cl, %ebx
sall $2, %ebx
sall value1
sall $2, value1
movl $1, %eax
movl $0, %ebx
int $0x80
(gdb) x/d &value1
0x804909c <value1>: 200
(gdb) info reg
eax 0x0 0
ecx 0x2 2
edx 0x0 0
ebx 0x140 320
No symbol table is loaded. Use the "file" command.
指令 | 描述 |
ROL | 向左循环移位 |
ROR | 向右循环移位 |
RCL | 向左循环移位,并且包含进位标志 |
RCR | 向右循环移位,并且包含进位标志 |
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |