#include int main (void){ int i = 0xFFFFFFFF; __asm { push eax; mov eax,i; sal eax,31; ... Read More
posted @ 2013-10-18 12:06 moon_cat Views(1048) Comments(0) Diggs(0) Edit
x86汇编移位操作有5类: 1.算数逻辑移位 SAR/SAL SAL: 左移,低位空出位补0,最近移出进CF SAR: 右移,高位空出多少位,就多少位补符号位,最近移出进CF Signed int a = 5; a >>= 2; signed int 一般被翻译成 SAL/SAR 2.逻辑移位 SHL/SHR SHL:左移,低位空出位补0,最近移出进... Read More
posted @ 2013-10-18 00:29 moon_cat Views(1281) Comments(0) Diggs(0) Edit