7
DETAILS OF INSTRUCTIONS
138
EPSON
S1C33 FAMILY C33 PE CORE MANUAL
popn
%rd
Function
Pop
Standard)
“
rN
←
W[sp], sp
←
sp +
4
”
repeated for
rN
= r
0
to
rd
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
12
11
8
7
4
3
0
0
0
0
0
0
0
1
0
0
1
0
0
r d
0x024_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Register direct
%rd
=
%r0
to
%r15
CLK
N +
1
cycles, where N = number of registers to be restored
Description
The data of general-purpose registers that have been saved to the stack by a
pushn
instruction is
restored from the stack. The
popn
instruction restores word data from the stack with its address
indicated by the current SP to the r
0
register, and increments the SP by an amount equivalent to
1
word (
4
bytes). This operation is repeated until a register that matches
rd
is reached. The
rd
must be
the same register as specified in the corresponding
pushn
instruction.
Stack operation when
popn
%rd
(where
%rd
=
%r3
) is executed
SP
31
0
r0
←
Data 0
r1
←
Data 1
r2
←
Data 2
r3
←
Data 3
SP
31
0
Data 3
Data 2
Data 1
Data 0
Data 3
Data 2
Data 1
Data 0
Example
popn %r3
; r0, r1, r2, and r3 are restored
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......