We do not need tags for specific asm instructions, as per the consensus of Creating tags for single assembly instructions?.
[x86] [assembly]
provides enough context for a search on "jmp" to find posts that mention it. (Although to be fair, it will appear in many Q&As that aren't specifically about it).
Or [68000] [assembly]
, because that ISA also has a jmp
instruction! In fact it's a fairly common mnemonic.
Many SO [jmp]
questions are about x86 because x86 has a variety of weird and wonderful(?) versions of jmp, e.g. jmp far
to update CS:[ER]IP
instead of just [ER]IP
for a near jump.
That previous meta question was about x86's LEA instruction, which is a more clear-cut case of an instruction that doesn't need its own tag: LEA only does shift/add integer math (with its only quirk being that the source operands use memory operand syntax and machine encoding). Once you grok that, there's zero mystery.
LEA only has one opcode for the mnemonic, vs. jmp having near and far forms, and direct/indirect, and its own unique syntax for operands for far jumps in AT&T vs. NASM vs. MASM.
So one canonical duplicate can't really cover everything about jmp
and call
, but having tags for them is still probably not great. A [jmp]
question is more often about understanding the basics of call vs. jmp and the super basics of how execution normally continues to the next instruction , not just the operation of jmp
itself.
Or for far jumps/calls, about understanding segmentation.
The amount of questions that could
Replacement tags to add when removing jmp
and/or call
:
x86
(and/or x86-64
or x86-16
), 68000
, or whatever. These and [assembly]
are obviously essential but missing from some questions.
subroutine
is maybe a good replacement for call
and questions about how to get execution to return. (And Assembly 'call' vs 'jmp' is a possible canonical duplicate for jmp-vs.call questions for near calls on x86).
real-mode
and/or memory-segmentation
are good for questions about far jumps/calls.
masm
, gas
/att
, nasm
, fasm
, emu8086
- syntax of how to write operands for jmp
obviously depend on which assembler. ljmp $0x0, $0x7c00
e.g. is only useful in AT&T syntax, for example, and yes there are differences between Intel-syntax assemblers in what they accept for jmp far
operands.
jump-table
for indirect jumps that look up a pointer from a table.