7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
139
pops
%sd
Function
Pop
Standard)
When
sd
= ahr: alr
←
W[sp], sp
←
sp +
4
, ahr
←
W[sp], sp
←
sp +
4
When
sd
= alr: alr
←
W[sp], sp
←
sp +
4
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
12
11
8
7
4
3
0
0
0
0
0
0
0
0
0
1
1
0
1
s d
0x00D_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Register direct
%sd
=
%alr
or
%ahr
CLK
Two cycles (when
sd
= alr), Three cycles (when
sd
= ahr)
Description
This instruction restores the data of special registers that have been saved to the stack by a
pushs
instruction back to each register.
(
1
) When the
sd
register is the ALR register
The word data at the address indicated by the current SP is restored to the ALR register, and the
SP is incremented by an amount equivalent to
1
word (
4
bytes).
(
2
) When the
sd
register is the AHR register
The word data at the address indicated by the current SP is restored to the ALR register, and
the SP is incremented by an amount equivalent to
1
word (
4
bytes). Next, the word data at the
address indicated by the current SP is restored to the AHR register, and the SP is incremented
by an amount equivalent to
1
word (
4
bytes). The
sd
must be the same register as specified in
the corresponding
pushs
instruction.
Stack operation when
pops
%sd
(where
%sd
=
%ahr
) is executed
SP
31
0
alr
←
Data 0
ahr
←
Data 1
SP
31
0
Data 1
Data 0
Data 1
Data 0
Example
(
1
)
pops %alr
; alr is restored singly
(
2
)
pops %ahr
; registers are restored in order of alr and ahr
Caution
When a register other than ALR or AHR is specified as the
sd
register, the
pops
instruction does
not pop data from the stack.
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......