mov 赋值指令,也成为传递指令
例如: mov ecx,123 //将123赋值给ecx
add 加法指令
sub 减法指令
inc 加1
dec 减1
注意: inc 与dec 为自加自减指令,后面不能加数字
xchg 交换指令; (只能对2个寄存器操作)
================================================
xchg eax,ecx
解释: eax—>ecx
ecx—–eax
push一下, esp数值减4
pop一下,esp的数值加4
==============================================
pushad 连续堆栈
pushad等价于:
push eax
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
===============================================
popad 连续弹栈
push edi
push esi
push ebp
push esp
push ebx
push ebx
push ecx
push eax
=========================================
cmp( 比较指令,比较2个寄存器中的值)
cmp eax,ecx
je (判断eax和ecx值相等则跳转,否则不跳转)
===============================================
cmp eax,ecx
jnz (判断eax与ecx值不相等则跳转,否则不跳转)
===============================================
cmp eax, 1
jg (若eax比 1大,则跳转,否则不跳转) 与ja效果相同
================================================
cmp eax,1
jl (若eax比1小, 则跳转,否则不跳转) 与jb效果相同
================================================
test指令