Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Instrukcja Użytkownika Strona 146

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 181
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 145
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 = r0 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 r0 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
Przeglądanie stron 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 180 181

Komentarze do niniejszej Instrukcji

Brak uwag