Assembly procedure

Discussion in 'Assembly Language Programming (ALP) Forum' started by shaddad82, Apr 8, 2008.

  1. shaddad82

    shaddad82 New Member

    Joined:
    Apr 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    here is the question guys:
    1. Write an IA-32 Main procedure that calls Proc1 via the "call" instruction. Within
    Proc1 define a stack frame using the LOCAL directive to contain the following: an
    array of 7 doublewords having label A, an array of 3 bytes having label B, and an
    array of 4 words having label C. Within Proc1 write code that finds and displays
    the following in hex notation:
    a) the value of return address that was pushed to stack when Proc1 was called by
    Main
    b) the address where the return address was stored in stack memory when Proc1
    was called by Main
    c) the contents of register EBP prior to the stack frame being created by LOCAL
    d) the address where a copy of EBP was stored in stack memory by LOCAL
    e) the contents of register EBP after the stack frame was created by LOCAL
    f) the range of address values corresponding to array A, stated both numerically
    and as offsets relative to EBP
    g) the range of address values corresponding to array B, stated both numerically
    and as offsets relative to EBP
    h) the range of address values corresponding to array C, stated both numerically
    and as offsets relative to EBP
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice