Select the pseudo-code that corresponds to the following assembly code. .data ;
ID: 3712197 • Letter: S
Question
Select the pseudo-code that corresponds to the following assembly code.
.data
; General purpose variables
a DWORD ?
b DWORD ?
c BYTE ?
d BYTE ?
upperLevel DWORD 18
lowerLevel DWORD 3
; Strings
yes BYTE "Yes",0
no BYTE "No",0
maybe BYTE "Maybe",0
.code
main PROC
mov eax, 0
cmp eax, lowerLevel
jne option1
jmp option2
option1:
mov edx, OFFSET yes
call WriteString
jmp endOfProgram
option2:
mov edx, OFFSET no
call WriteString
jmp endOfProgram
option3:
mov edx, OFFSET maybe
call WriteString
endOfProgram:
exit
main ENDP
END main
[A-B-C-D] answers are:
Explanation / Answer
The pseudo-code that corresponds to the following assembly code is...
print (yes);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.