x86 architecture
stack frames




 
PUSHA and POPA
 
16-bit
AX
CX
DX
BX
SP #1
BP
SI
DI
32-bit
EAX
ECX
EDX
EBX
ESP #1
EBP
ESI
EDI
note #1 pre-PUSHA value, discarded by POPA
 
 
interrupt or trap gate
 
16-bit
GS #1
FS #1
DS #1
ES #1
SS #2
SP #2
FLAGS
CS
IP
error code #3
32-bit
reserved GS #1
reserved FS #1
reserved DS #1
reserved ES #1
reserved SS #2
ESP #2
EFLAGS
reserved CS
EIP
reserved error code #3
64-bit
reserved reserved SS
RSP
RFLAGS
reserved reserved CS
RIP
reserved reserved error code #3
notes #1 only if transfer from virtual mode
#2 only if transfer from different CPL
#3 only #DF, #TS, #NP, #SS, #GP, #PF, #AC
 
 
call gate
 
16-bit
SS #1
SP #1
PARAMETER 1
... #2
PARAMETER 31
CS
IP
32-bit
reserved SS #1
ESP #1
PARAMETER 1
... #2
PARAMETER 31
reserved CS
EIP
64-bit
reserved reserved SS #1
RSP #1
reserved reserved CS
RIP
notes #1 only if transfer from different CPL
#2 only if PARAMCOUNT field is non-zero



main page

© 1996-2024 by Christian Ludloff. All rights reserved. Use at your own risk.