must INCLUDE Irvine32.inc Write a procedure named ShowParams that displays the a
ID: 3535871 • Letter: M
Question
must INCLUDE Irvine32.inc
Write a procedure named ShowParams that displays the address and hexadecimal value of the
32-bit parameters on the runtime stack of the procedure that called it. The parameters are to be
displayed in order from the lowest address to the highest. Input to the procedure will be a single
integer that indicates the number of parameters to display. For example, suppose the following
statement in main calls MySample, passing three arguments:
INVOKE MySample, 1234h, 5000h, 6543h
Next, inside MySample, we make a call to ShowParams, passing the number of parameters:
MySample PROC first:DWORD, second:DWORD, third:DWORD
paramCount = 3
call ShowParams, paramCount
Suggestion: Run the program in Debug mode and examine the Disassembly window. The following
is a sample of the expected output:
Stack parameters:
---------------------------
Address 0012FF80 = 00001234
Address 0012FF84 = 00005000
Address 0012FF88 = 00006543
Explanation / Answer
If no one answers please rate me.....plzzz......
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.