Hi hutch. I see, I can use CMP、JG、JL、JEQ、JNE、JLE、JGE and other instruction mnemonics to construct my code to achieve conditional judgment control flow function. This is the advantage of pure manual command mnemonics. thorough, deep and straightforward!
include \masm32\include64\masm64rt.inc
.data
int01 sqword 1
int02 sqword 2
int03 sqword 3
int04 sqword 4
cmpa sqword -45
cmpb sqword 45
.code
entry_point proc
mov r12,18
mov r13,-(18)
cmp cmpb,r13
jg lb2
printf("\t\t\t\t%ld %ld\n",int03,int04)
jmp lb1
lb2:
printf("\t\t\t\t%ld %ld\n",int01,int02)
lb1:
waitkey
conout tab,tab,tab,tab,"r12=",str$(r12),lf
conout tab,tab,tab,tab,"r13=",str$(r13),lf
waitkey
.exit
entry_point endp
end