|
Jumps Based on Unsigned Comparisons
The table on the right shows a list of jumps based on comparisons of unsigned integers. |
|
|
Jumps Based on Signed Comparisons
The table on the right shows a list of jumps based on comparisons of signed integers. |
|
jecxz
|
ja
|
jg
|
INCLUDE Irvine32.inc
.data
X DWORD 12345678h
.code
main PROC
mov eax, 0
mov ecx, 10
L1: add eax, ecx
dec ecx
jecxz L2
jmp L1
L2: call WriteDec
exit
main ENDP
END main
|
INCLUDE Irvine32.inc
.data
X DWORD 12345678h
.code
main PROC
mov al, -128
cmp al, 1
ja L1
call WaitMsg
L1: exit
main ENDP
END main
|
INCLUDE Irvine32.inc
.data
X DWORD 12345678h
.code
main PROC
mov al, -128
cmp al, 1
jg L1
call WaitMsg
L1: exit
main ENDP
END main
|
| Output | Output | Output |
|
“I’m not arguing, I’m just explaining why I’m right.” ― Unknown |