先判条件a真,跳到thenLab
再判b假,跳到elseLab
include vcIo.inc
.data
var1 byte 12h
str_then byte "then",0ah, 0
str_else byte "else",0ah ,0
.code
main proc
;if(var1 > 20h \\ var <11h )
;---
;else
;------
mov al,var1
cmp al,20h
ja thenLab
cmp al,11h
jae elseLab
thenLab:
pushad
invoke printf, offset str_then
popad
jmp next
elseLab:
pushad
invoke printf, offset str_else
popad
next:
invoke _getch
ret
main endp
end main