# `jmp`

[M68K Documentation](https://asm-editor.specy.app/documentation/m68k.md) › [Instructions](https://asm-editor.specy.app/documentation/m68k/instruction.md)

Web page: https://asm-editor.specy.app/documentation/m68k/instruction/jmp

**Jump**

Category: Control flow

Jumps to the specified address unconditionally.

Used in: [A jump table](https://asm-editor.specy.app/learn/courses/m68k/examples/jump-table.md) (M68K assembly)

## Flags

| Flag | Effect |
| --- | --- |
| X | not changed |
| N | not changed |
| Z | not changed |
| V | not changed |
| C | not changed |

## Forms

- `jmp <ea>`
  - Operand: (An), d(An), d(An,Xn), abs, d(PC), d(PC,Xn) (control)

## Operands

- [`<ea>`](https://asm-editor.specy.app/documentation/m68k/addressing-mode.md): An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With `opt p=68020`, an allowed `d(An,Xn)` or `d(PC,Xn)` mode also permits the corresponding 68020 indexed and memory indirect forms. See [68020 addressing](https://asm-editor.specy.app/documentation/m68k/addressing-mode/68020.md).

## Example

```m68k
move.l #10, d0
jmp skip
move.l #$DEAD, d1 ; never reached
skip:
    move.l #$FF, d1

* --- Jump through address register ---
lea skip2, a0
jmp (a0)
move.l #$DEAD, d2 ; never reached
skip2:
    move.l #$FF, d2
```
