ASM2 - Documentation
  • 📚ASM2 - Documentation
  • Registers
  • Address Registers
  • Instructions
    • DISP
    • END
    • MOV
    • RET
  • Operators
    • ADD
    • SUB
    • MUL
    • DIV
  • Functions
  • Subroutines
  • Jump
    • Conditional Jump
      • Jump Equal (JE)
      • Jump Not Equal (JNE)
      • Jump Greater (JG)
      • Jump Greater or Equal (JGE)
      • Jump Less (JL)
      • Jump Less or Equal (JLE)
    • Unconditional Jump
Powered by GitBook
On this page
  1. Jump

Unconditional Jump

In ASM2 assembly language, the Jump Unconditional (JMP) instruction is a control flow operation that unconditionally transfers program execution to a specified label or function. Unlike conditional jump instructions, JMP does not depend on the state of any flags or the outcome of previous operations. It always causes the program to jump to the specified target.

Syntax for Using JMP: JMP <label/function_name> JMP ANYWHERE

Where:

  • <label/function_name> is the label or function to which the program will jump without any condition.

Technical Details:

  • Unconditional Execution: JMP does not require any condition to be met. It always redirects the flow of the program to the target address or label.

  • Application in Program Flow: JMP is used for implementing loops, function calls, and other control structures where an unconditional change in the program execution path is required.

  • Versatility in Use: It can be used for various purposes, such as breaking out of loops, skipping over sections of code, or jumping to subroutine calls.

PreviousJump Less or Equal (JLE)

Last updated 1 year ago