汇编- jns符号位SF=0则跳转(非负数则跳转)

 

.386  
.model flat,stdcall 
option casemap:none
.stack 4096

Include Irvine32.inc
includelib Irvine32.lib

ExitProcess PROTO,dwExitCode:DWORD  
 
.data       
 
.code   
main PROC   
    
    and al,00000001b  ;让符号位SF=0
    jns  t1        ;jns符号位SF=0则跳转(非负数则跳转)
    mov ebx,02h
    jmp t2
    t1:
    mov eax ,02h
    t2:


    INVOKE ExitProcess,0  
main ENDP   
END main

 

 

 

 

 

 

posted @ 2023-12-13 08:58  天子骄龙  阅读(48)  评论(0)    收藏  举报