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.
Control-Flow Instructions
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Select an instruction for more information.
 
     Instruction     Description
 
     JMP             Jump unconditionally
     JCXZ/JECXZ      Jump if CX is zero
     Jcond           Jump conditionally
 
     LOOP            Loop (decrement CX, then jump if CX is not 0)
     LOOPE/LOOPZ     Loop conditionally (loop while condition is met
                     and CX is not 0)
 
     CALL            Call subroutine
     RET             Return from subroutine
     RETN/RETF       Return from subroutine (near or far)
 
     INT             Interrupt (call interrupt subroutine)
     IRET            Interrupt return
 
     ENTER           Make stack frame (186+)
     LEAVE           Exit high-level procedure (186+)
     BOUND           Check array boundaries (186+)
 
     CMP             Compare (same as SUB, but result is ignored)
     CMPS            Compare string
     TEST            Logical compare (same as AND, but result is
                     ignored)
     INTO            Interrupt on overflow
     CMPXCHG         Compare and exchange with accumulator (486+)
 
     See also: Floating-Point Control-Flow Instructions,
                BIOS Calls, DOS Calls
                                    -♦-