RTS (ReTurn from Subroutine)
RTS
<Description>
This instruction returns from a subroutine. It pops the program counter (PC) from the stack.
Program execution continues from the address restored to the program counter.
The PC contents at the time of execution of this instruction are lost.
<Instruction Formats>
<Operation>
@SP+
→
PC
<Assembly-Language Format>
RTS
<Examples>
RTS
<Operand Size>
—
<Condition Code>
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
I
H
N
Z
V
C
—
—
—
— —
— —
—
RTS
5
4
7
0
8
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
103
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...