| CS306 | Processing Systems and Structures | J. W. Lockwood, |
| Command | Description | Condition |
|---|---|---|
| JA=JNBE |
Jump if above Jump if not below or equal | C=0 & Z=0 |
| JBE=JNA | Jump if below or equal | C=1 | Z=1 |
| JAE=JNB=JNC |
Jump if above or equal Jump if not below Jump if no carry | C=0 |
| JB=JNA=JC |
Jump if below Jump if carry | C=1 |
| JE=JZ | Jump if equal Jump if Zero | Z=1 |
| JNE=JNZ | Jump if not equal Jump if not zero | Z=0 |
| JS | Jump Sign (MSB=1) [More info] | S=1 |
| JNS | Jump Not Sign (MSB=0) | S=0 |
| JO | Jump if overflow set | O=1 |
| JNO | Jump if no overflow | O=0 |
| JG=JNLE |
Jump if greater Jump if not less or equal | S=O & Z=0 |
| JGE=JNL |
Jump if greater or equal Jump if not less | S=O |
| JL=JNGE |
Jump if less Jump if not greater or equal [More info] | S^O |
| JLE=JNG |
Jump if less or equal Jump if not greater | S^O | Z=1 |
| JCXZ | Jump if register CX=zero | CX=0 |


So, the code above could be fixed to: