Jump to Subroutine (jsr)

Syntax

jsr $d_reg, ($s_reg), jhint

jsr $d_reg, ($s_reg)

jsr ($s_reg), jhint

jsr ($s_reg)

jsr ($s_reg), jhint

jsr $d_reg, address

jsr address

Description

Jump to Subroutine unconditionally jumps to a specified location and stores the return address in the destination register. If a destination register is not specified, register $ra ($26) is used. A symbolic address or the source register specifies the target location. The instruction jsr procname transfers to procname and saves the return address in register $26.

All jump instructions (jmp, jsr, ret, jsr_coroutine) perform identical operations. They differ only in hints to possible branch-prediction logic.

See Also

For information about branch prediction logic, see the Alpha Architecture Reference Manual.