Branch to subroutine (agu), Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual
Page 419

BSR
SC140 DSP Core Reference Manual
A-105
BSR
Branch to Subroutine (AGU)
BSR
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
None.
Example
bsr _label
Operation
Assembler Syntax
(Next PC)
→ (SP); SR → (SP + 4); SP + 8 → SP;
PC + displacement
→ PC; (Next PC)→ RAS
BSR
BSR
BSR >label
Pushes the next PC and SR onto the stack and causes program execution to continue at location PC +
displacement. The displacement, calculated by the assembler and linker, is a two’s complement integer that
represents the relative distance from the current PC to the destination label. The assembler determines if
the PC relative displacement is a short branch (