汇编 AND 运算
AND运算 逻辑与&& 按位与& 一、AND运算 1&&12=1; 12&&0=0; 0&&1=0; 00401000 /$ 55 PUSH EBP 00401001 |. 8BEC MOV EBP,ESP 00401003 |. 83EC 10 SUB ESP,10 00401006 |. C745 FC 93000>MOV DWORD PTR SS:[EBP-4],93 ; i=0x93 =10010011 0040100D |. C745 F4 87000>MOV DWORD PTR SS:[EBP-C],87 ; j=0x87 =10000111 00401014 |. 837D FC 00 CMP DWORD PTR SS:[EBP-4],0 ; i and j=10000011 00401018 |. 74 0F JE SHORT asm_AND.00401029 ; JNE 0040101A |. 837D F4 00 CMP DWORD PTR SS:[EBP-C],0 0040101E |. 74 09 JE SHORT asm_AND.00401029 00401020 |. C745 F0 01000>MOV DWORD PTR SS:[EBP-10],1 ; t=1 00401027 |. EB 07 JMP SHORT asm_AND.00401030 00401029 |> C745 F0 00000>MOV DWORD PTR SS:[EBP-10],0 ; t=0; 00401030 |> 8B45 F0 MOV EAX,DWORD PTR SS:[EBP-10] ; eax=t 00401033 |. 8945 F8 MOV DWORD PTR SS:[EBP-8],EAX ; k=eax=i&&j; 00401036 |. 8BC0 MOV EAX,EAX ; __asm mov eax,eax 00401038 |. 8B4D FC MOV ECX,DWORD PTR SS:[EBP-4] ; ecx=i 0040103B |. 234D F4 AND ECX,DWORD PTR SS:[EBP-C] ; ecx=i&j; 0040103E |. 894D F8 MOV DWORD PTR SS:[EBP-8],ECX ; k=ecx=i&j; 00401041 |. 33C0 XOR EAX,EAX 00401043 |. 8BE5 MOV ESP,EBP 00401045 |. 5D POP EBP 00401046 \. C3 RETN