RTS

Returning from a subroutine

RTS

ReTurn from Subroutine


[Syntax]

RTS

 

[Operation]

PC = *SP;

SP = SP + 4;

 

[Function]

-

This instruction rotates dest one bit to the left including the C flag.

 

[Instruction Format]

Syntax

Code Size

(Byte)

RTS

1

 

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

RTS