bsr

Branch to subroutine

Pushes the return address onto the stack and branches to the specified address.

Sizes .b .s .w .l

XNZVC –––––
  • Changes no flag

Forms

  • bsr

Operands

label
A branch target, written as a label or address. The assembler calculates the relative displacement. More
move.l #10, d0
bsr add_two
move.l d0, d1 ; d1 = 12
bra END

add_two:
    addq.l #2, d0
    rts

END: