This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: a. .code o o push val1 push val2 call Delay Delay PROC push ebp mov ebp, esp mov ecx, [ebp + 12] mov edx, [ebp + 8] o o b. Stack Contents ebp + 12 val1 ebp + 8 val2 ebp + 4 Return Address ebp , esp EBP 3. The following array was previously filled with data from an external source: .data bArray BYTE 200 DUP(?) Write the code to search for the number of 00h data in the filled array and return the count in the eax register. .code cld mov edi, OFFSET bArray mov ecx, LENGTHOF bArray xor bl, bl xor al, al L1: scasb jne L2 inc bl L2: loop L1 movzx eax, bl ; eax = 00h count...
View Full Document
- X86, Call stack, Forth, The Stack