JSR

Jump to a subroutine

JSR

Jump SubRoutine


[Syntax]

JSR src

 

[Operation]

SP = SP - 4;

*SP = ( PC + 2 );*

PC = src;

 

[Function]

-

This instruction causes the flow of execution to branch to the subroutine specified by src.

 

[Instruction Format]

Syntax

Operand

Code Size

(Byte)

src

JSR src

Rs

2

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

JSR R1