je ZF=0则跳转 jne ZF=1则跳转
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
assume cs:code, ds:data data segment db 'Hello,test' data ends code segment start: mov ax,10h mov bx,01h s: inc bx test ax,bx jne s mov ax,4c00h int 21h code ends end start end |
转载请注明:exchen's blog » 16位汇编 cmp jne实现判断和循环