Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Jcondition Instruction
 Detail Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Jump Conditionally                    Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   Jcondition label                                  -none-
 
  See also: .IF, JMP, JCXZ, SETcond, OPTION LJMP
 
  Description:
 
     Transfers execution to the specified label if the flags condition
     is true. The condition is tested by checking the flags.
     See: Jump Conditions Table
 
     If the condition is false, no jump is taken and program execution
     continues at the next instruction.
 
     On the 8086-80286 processors, the label given as the operand must
     be short (between -128 and +127 bytes from the instruction
     following the jump).
 
     The 80386/486 allows near jumps (-32,768 to +32,767 bytes). On the
     80386/486, the assembler generates the shortest jump possible,
     unless the jump size is explicitly specified.
 
     When the 80386/486 is in FLAT memory model, short jumps range from
     -128 to +127 bytes and near jumps range from -2 to +2 gigabytes.
     There are no far jumps.
 
     NOTE: If a source file for an 8086-80286 program contains a
           conditional jump beyond the range of -128 to +127 bytes, the
           assembler emits a level 3 warning and generates two
           instructions (including an unconditional jump) that are the
           equivalent of the desired instruction.
 
           This behavior can be enabled and disabled with the OPTION
           LJMP and OPTION NOLJMP directives.
                                    -♦-