Renesas Renasas Single-Chip Microcomputer SH7086 Manual de usuario Pagina 90

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 308
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 89
72
Chapter 3 Functions
3.2 Functions
179
ENTER function
Build stack frame
[ Description Example ]
ENTER #3
[ Related Instructions ] EXITD
ENTER ENTER
[ Flag Change ]
[ Operation ]
SP SP 2
M(SP) FB
FB SP
SP SP src
[ Syntax ]
ENTER src
src
#IMM8
[ Selectable src ]
UIOBSZDC
[ Instruction Code/Number of Cycles ]
Page=
Flag
Change
Return address (L)
Return address (M)
Return address (H)
Argument of function
SP
FB
SP
After instruction execution
Auto variable area
Direction in
which address
increases
Number of bytes
indicated by
src
FB (L)
FB (H)
Return address (L)
Return address (M)
Return address (H)
Argument of fun
ction
Before instruction execution
[ Function ]
This instruction generates a stack frame.
src
represents the size of the stack frame.
The diagrams below show the stack area status before and after the ENTER instruction is executed at
the beginning of a called subroutine.
Vista de pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 307 308

Comentarios a estos manuales

Sin comentarios