7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
143
pushn
%rs
Function
Push
Standard)
“
sp
←
sp -
4
, W[sp]
←
rN
”
repeated for
rN
=
rs
to r
0
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
12
11
8
7
4
3
0
0
0
0
0
0
0
1
0
0
0
0
0
r s
0x020_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Register direct
%rs
=
%r0
to
%r15
CLK
N +
1
cycles, where N = number of registers to be saved
Description
Save the data of general-purpose registers to the stack.
The
pushn
instruction first decrements the current SP by an amount equivalent to
1
word (
4
bytes),
and saves the content of the
rs
register to that address. This operation is repeated successively until
the r
0
register is reached.
Stack operation when
pushn
%rs
(where
%rs
=
%r3
) is executed
SP
31
0
SP
31
0
r3 data
r2 data
r1 data
r0 data
Example
pushn %r3
; r3, r2, r1, and r0 are saved