Renesas R8C/Tiny Series Software Manual page 119

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 3
Functions
POPC
[ Syntax ]
POPC
dest
[ Operation ]
dest
M(SP)
SP
*1
SP
+
dest
*1 When
is SP or when the U flag = "0" and
[ Function ]
• This instruction restores from the stack area to the control register indicated by
• When restoring the interrupt table register, always be sure to restore INTBH and INTBL in succession.
• No interrupt requests are accepted immediately after this instruction.
[ Selectable dest ]
[ Flag Change ]
Flag
U
I
O
Change
*3 *3 *3 *3 *3 *3 *3 *3
[ Description Example ]
POPC
SB
[ Related Instructions ]
Restore control register
POP Control register
2
B
S
Z
D
C
PUSHC,LDC,STC,LDINTB
[ Instruction Code/Number of Cycles ]
dest
is ISP, the value 2 is not added to SP.
FB
SB
SP
*2 Operation is performed on the stack pointer indi-
cated by the U flag.
*3 The flag changes only when
102
3.2
dest
.
dest
*2
ISP FLG INTBH INTBL
dest
is FLG.
Functions
POPC
Page=213

Advertisement

Table of Contents
loading

Table of Contents