פורסם 2009 בדצמבר 815 שנים hey everybody,when i call a func in assembly, i'm pushing it's arguments first right?so when i'm inside the func, where do they sit in the stack?in the caller func, the var's set in -8ebp and -4ebp, but they are not there anymoreI know I'm messing with the stack pointer at the beginning of the func, but howmuch did I move it? where are my vars? I would appreciate an explantion, so that i would understand for all funcs.Thanks a lot guys.
פורסם 2009 בדצמבר 815 שנים אוקי, אז ככהבעת קריאה לפונקציה מתבצע הדבר הבאמצביע ההוראות ip נדחף גם הוא למחסנית על מנת שתיהיה כתובת חזרהעכשיו הוא בגודל של 4 בייטים דבר שני, המיקום יהיה ebp+8 ולא - מאחר והמחסנית הולכת מלמעלה(בכאילו) למטה
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.