Sonic Alert msm83c154s, msm80154s, msm85c154hvs RET Return from subroutine, non interrupt, 347

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 354
Image 354

DESCRIPTION OF INSTRUCTIONS

88. RET (Return from subroutine, non interrupt)

 

7

 

 

 

 

 

 

 

0

Instruction code

:

0

0

1

0

 

0

0

1

0

Operations

: (PC8~15)((SP))

 

 

 

 

 

 

 

 

(SP)(SP)–1

 

 

 

 

 

 

(PC0~7)((SP)) (SP)(SP)–1

Byte 1

Number of bytes

: 1

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

Flags

: C AC F0 RS1 RS0 OV F1 P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The stack contents addressed by the stack pointer are popped

 

 

in the upper order 8 thru 15 of the program counter, and the

 

 

stack pointer is decremented by 1. Then the stack contents

 

 

addressed by the updated stack pointer are popped in the lower

 

 

order 0 thru 7 of the program counter, again decrementing the

 

 

stack pointer by 1. The program counter is updated with the

 

 

stack contents, and control is shifted to the address after

 

 

updating.

347

Page 354
Image 354
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual RET Return from subroutine, non interrupt, 347