JE ;等于則跳轉(zhuǎn)JNE ;不等于則跳轉(zhuǎn)JZ ;為 0 則跳轉(zhuǎn)JNZ ;不為 0 則跳轉(zhuǎn)JS ;為負(fù)則跳轉(zhuǎn)JNS ;不為負(fù)則跳轉(zhuǎn)JC ;進(jìn)位則跳轉(zhuǎn)JNC ;不進(jìn)位則跳轉(zhuǎn)JO ;溢出則跳轉(zhuǎn)JNO ;不溢出則跳轉(zhuǎn)JA ;無(wú)符號(hào)大于則跳轉(zhuǎn)JNA ;無(wú)符號(hào)不大于則跳轉(zhuǎn)JAE ;無(wú)符號(hào)大于等于則跳轉(zhuǎn)JNAE ;無(wú)符號(hào)不大于等于則跳轉(zhuǎn)JG ;有符號(hào)大于則跳轉(zhuǎn)JNG ;有符號(hào)不大于則跳轉(zhuǎn)JGE ;有符號(hào)大于等于則跳轉(zhuǎn)JNGE ;有符號(hào)不大于等于則跳轉(zhuǎn)JB ;無(wú)符號(hào)小于則跳轉(zhuǎn)JNB ;無(wú)符號(hào)不小于則跳轉(zhuǎn)JBE ;無(wú)符號(hào)小于等于則跳轉(zhuǎn)JNBE ;無(wú)符號(hào)不小于等于則跳轉(zhuǎn)JL ;有符號(hào)小于則跳轉(zhuǎn)JNL ;有符號(hào)不小于則跳轉(zhuǎn)JLE ;有符號(hào)小于等于則跳轉(zhuǎn)JNLE ;有符號(hào)不小于等于則跳轉(zhuǎn)JP ;奇偶位置位則跳轉(zhuǎn)JNP ;奇偶位清除則跳轉(zhuǎn)JPE ;奇偶位相等則跳轉(zhuǎn)JPO ;奇偶位不等則跳轉(zhuǎn)
11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|
OF | DF | IF | TF | SF | ZF | AF | PF | CF | |||
溢 出 | 符 號(hào) | 零 | 未 用 | 輔 助 | 未 用 | 奇 偶 | 未 用 | 進(jìn) 位 |
; Test28_1.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' jmp @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main;測(cè)試結(jié)果應(yīng)該是:;1;4;以下都應(yīng)該是這樣.
; Test28_2.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov eax, 123 cmp eax, 123 je @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_3.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' xor eax, eax jz @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_4.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' xor eax, eax dec eax js @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_5.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov al, 0FFh add al, 1 jc @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_6.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov al, -128 sub al, 1 jo @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_7.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov eax, 22 cmp eax, 11 ja @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_8.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov eax, 1 cmp eax, -1 jg @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_9.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' mov al, 00001110b inc al jp @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
; Test28_10.asm;.386.model flat, stdcallinclude windows.incinclude kernel32.incinclude masm32.incinclude debug.incincludelib kernel32.libincludelib masm32.libincludelib debug.lib.codemain proc PrintText '1' xor ecx, ecx jecxz @F PrintText '2' PrintText '3'@@: PrintText '4' retmain endpend main
聯(lián)系客服