INCLUDE Irvine32.inc
myProc PROTO, x:DWORD, y:DWORD .data
.code
main proc
mov eax,0EAEAEAEAh
mov ebx,0EBEBEBEBh
INVOKE myProc, 1111h, 2222h
exit
main endp
myProc proc uses eax ebx, x:DWORD, y:DWORD
LOCAL a:DWORD, b:DWORD PARAMS =
LOCALS =
SAVED_REGS =
mov a,0AAAAh
mov b,0BBBBh
inc x
inc y
INVOKE WriteStackFrame, PARAMS, LOCALS,SAVED_REGS
ret
myProc endp end main
Alt+8查看
--- D:\Irvine\Examples\Project32\ShowStackFrame.asm ----------------------------
mov eax,0EAEAEAEAh
mov eax,0EAEAEAEAh
mov ebx,0EBEBEBEBh
mov ebx,0EBEBEBEBh
INVOKE myProc, 1111h, 2222h
0040102A push 2222h
0040102F push 1111h
call myProc (0401040h)
exit
push
0040103B call _ExitProcess@4 (0402064h)
main endp
myProc proc uses eax ebx, x:DWORD, y:DWORD
push ebp
mov ebp,esp
add esp,0FFFFFFF8h
push eax
push ebx
LOCAL a:DWORD, b:DWORD PARAMS =
LOCALS =
SAVED_REGS =
mov a,0AAAAh
mov dword ptr [a],0AAAAh
mov b,0BBBBh
0040104F mov dword ptr [b],0BBBBh
inc x
inc dword ptr [x]
inc y
inc dword ptr [y]
INVOKE WriteStackFrame, PARAMS, LOCALS,SAVED_REGS
0040105C push
0040105E push
push
call _WriteStackFrame@12 (0401F6Fh)
ret
pop ebx
pop eax
leave
0040106A ret
--- 无源文件 ---------------------------------------------