INCLUDE Irvine32.IncMyProc PROTO,x:DWORD,y:DWORD.data.codemain procmovEax,0eaeaeaeahmovebx,0ebebebebh INVOKE MyProc, 1111h, 2222h exitmain endpmyproc proc uses eax ebx,x:DWORD,y:DWORD LOCALA:DWORD,B:DWORD PARAMS =2LOCALS =2Saved_regs =2 movA,0aaaahmovB,0BBBBHIncxIncy INVOKE writestackframe, PARAMS, Locals,saved_regsretMyProc Endpend Main
Alt+8 View
---D:\irvine\examples\project32\showstackframe.asm----------------------------movEax,0eaeaeaeah00401020 movEax,0eaeaeaeahmovEBX,0EBEBEBEBH00401025 movebx,0ebebebebh INVOKE MyProc, 1111h, 2222h0040102A Push2222h0040102F Push1111h00401034 PagerMyProc (0401040h) Exit00401039 Push 0 0040103B Pager[email protected] (0402064h) main ENDPMYPROC proc uses eax ebx,x:DWORD,y:DWORD00401040 PushEBP00401041 movEbp,esp00401043 Addesp,0fffffff8h00401046 Pusheax00401047 Pushebx LOCALA:DWORD,B:DWORD PARAMS =2LOCALS =2Saved_regs =2 movA,0aaaah00401048 movDWORD ptr [A],0aaaahmovB,0BBBBH0040104F movDWORD ptr [B],0BBBBHIncx00401056 IncDWORD ptr [x]Incy00401059 Incdword ptr [y] INVOKE writestackframe, PARAMS, Locals,saved_regs0040105C Push 2 0040105E Push 2 00401060 Push 2 00401062 Pager[email protected] (0401F6FH)ret00401067 Popebx00401068 Popeax00401069 Leave 0040106A ret 8---passive files---------------------------------------------
Assembly View StackFrame Stack frame