Please help with an explanation on how to read through this: The code below uses
ID: 3903836 • Letter: P
Question
Please help with an explanation on how to read through this:
The code below uses the Space macro which simply displays the number of blank spaces specified by its argument. What is the first number printed to the screen after this code executes? (ignore the .0000 from Canvas)
main PROC
push 3
push 11
call rcrsn
exit
main ENDP
rcrsn PROC
push ebp
mov ebp,esp
mov eax,[ebp + 12]
mov ebx,[ebp + 8]
cmp eax,ebx
jl recurse
jmp quit
recurse:
inc eax
push eax
push ebx
call rcrsn
mov eax,[ebp + 12]
call WriteDec
Space 2
quit:
pop ebp
ret 8
rcrsn ENDP
Explanation / Answer
Answer:
The first number printed on the screen after the code gets executed is the 3.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.