Procedures

profilejav284
procedures.docx

· Answer the following questions:

a. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before

Instruction

After

ESP: 06 00 10 00

ECX: 01 A2 5B 74

push ecx

pushd 10

ESP, ECX

b. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before

Instruction

After

ESP: 02 00 0B 7C

ECX: 12 34 56 78

pushd 20

push ebx

ESP, EBX

c. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

Before

Instruction

After

ESP: 00 10 F8 3A

EAX: 12 34 56 78

push eax

pushd 30

pop ebx

pop ecx

ESP, EAX, EBX, ECX