jmp


Unconditional branch.

[Syntax]

-

jmp [reg]

-

jmp addr

-

jmp disp32[reg]

 

The following can be specified for addr:

-

Relative expression having the absolute address reference of a label

 

The following can be specified for disp32:

-

Absolute expression having a value of up to 32 bits

-

Relative expression with a reference to the absolute address of a label

[Function]

-

Syntax "jmp [reg]"

Transfers control to the address indicated by the value of the register specified by the operand.

-

Syntax "jmp disp32[reg]"

Transfers control to the address attained by adding the displacement specified by the operand and the register content.

-

Syntax "jmp addr"

Transfers control to the address indicated by the value of the relative expression specified by the operand.

[Description]

-

When this instruction is executed in syntax "jmp [reg]", the assembler generates one jmp machine instruction.

-

When the instruction is executed in syntax "jmp addr", the assembler generates one jmp machine instruction (6-byte long instruction).

-

When this instruction is executed in syntax "jmp disp32[reg]", the assembler generates one jmp (6-byte long instruction) machine instructions. If an absolute expression is specified as disp32, [reg] can be omitted. If omitted, the assembler assumes that [r0] is specified.

[Flag]

CY

---

OV

---

S

---

Z

---

SAT

---

[Caution]

-

If an expression other than a relative expression having the absolute address reference of a label is specified as addr in syntax "jmp addr", the assembler outputs the following message and stops assembling.

E0551207 : "string" is not allowed.