0% found this document useful (0 votes)
12 views

Instruction

The document describes various x86 processor instruction flags and jump instructions that check those flags. It lists 24 jump instructions, their opcodes, and which flag(s) they check - such as checking the zero flag to jump if equal, carry flag to jump if below, or sign and overflow flags to jump if greater than. It also provides a brief description of common processor flags like carry, parity, zero, sign, and overflow flags.

Uploaded by

Be You
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Instruction

The document describes various x86 processor instruction flags and jump instructions that check those flags. It lists 24 jump instructions, their opcodes, and which flag(s) they check - such as checking the zero flag to jump if equal, carry flag to jump if below, or sign and overflow flags to jump if greater than. It also provides a brief description of common processor flags like carry, parity, zero, sign, and overflow flags.

Uploaded by

Be You
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Instruct ion JO JNO JS JNS JE JZ JNE JNZ JB JNAE JC JNB JAE JNC JBE JNA JA JNBE JL JNGE JGE

JNL JLE JNG

Description

signed -ness

Flags

short near jump jump opcode opcode s s 70 71 78 79 74 75 72 0F 80 0F 81 0F 88 0F 89 0F 84 0F 85 0F 82

Jump if overflow Jump if not overflow Jump if sign Jump if not sign Jump if equal Jump if zero Jump if not equal Jump if not zero Jump if below Jump if not above or equal Jump if carry Jump if not below Jump if above or equal Jump if not carry Jump if below or equal Jump if not above Jump if above Jump if not below or equal unsigned

OF = 1 OF = 0 SF = 1 SF = 0 ZF = 1 ZF = 0 CF = 1

unsigned

CF = 0

73

0F 83

unsigned

CF = 1 or ZF = 76 1 CF = 0 and ZF =0 SF <> OF SF = OF ZF = 1 or SF <> OF 77

0F 86

unsigned

0F 87

signed Jump if less Jump if not greater or equal Jump if greater or equal Jump if not less Jump if less or equal Jump if not greater signed

7C

0F 8C

7D

0F 8D

signed

7E

0F 8E

Instruct ion JG JNLE JP JPE JNP JPO JCXZ JECXZ

Description

signed -ness
signed

Flags

short near jump jump opcode opcode s s 7F 0F 8F

Jump if greater Jump if not less or equal Jump if parity Jump if parity even Jump if not parity Jump if parity odd Jump if %CX register is 0 Jump if %ECX register is 0

ZF = 0 and SF = OF PF = 1 PF = 0 %CX = 0 %ECX = 0

7A 7B E3

0F 8A 0F 8B

Processor Flags
The x86 processors have a large set of flags that represent the state of the processor, and the conditional jump instructions can key off of them in combination. CF - carry flag Set on high-order bit carry or borrow; cleared otherwise PF - parity flag Set if low-order eight bits of result contain an even number of "1" bits; cleared otherwise ZF - zero flags Set if result is zero; cleared otherwise SF - sign flag Set equal to high-order bit of result (0 if positive 1 if negative) OF - overflow flag Set if result is too large a positive number or too small a negative number (excluding sign bit) to fit in destination operand; cleared otherwis

You might also like