Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   Assembly procedure (http://www.go4expert.com/forums/assembly-procedure-t9868/)

shaddad82 9Apr2008 02:39

Assembly procedure
 
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


All times are GMT +5.5. The time now is 13:00.