Computers and Technology, 21.10.2020 16:01 alexandra2442
Select the pseudo-code that most closely corresponds to the following assembly code. Assume that the variables a, b, c, and d are initialized elsewhere in the program. Pay close attention to the conditional jumps, the corresponding pseudo code may surprise you!
.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, a
cmp eax, b
jle option1
je option2
jmp option3
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. if (a < b) OR (a == b)
print (yes);
else
print (maybe);
b. if (a > b)
print (yes);
else if (a == b)
print (no);
else
print (maybe);
c. if (a < b)
print (yes);
else if (a == b)
print (no);
else
print (maybe);
d. if (a > b) OR (a == b)
print (yes);
else
print (maybe);
Answers: 3
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
Select the pseudo-code that most closely corresponds to the following assembly code. Assume that the...
Medicine, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Biology, 07.06.2020 06:00
History, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Computers and Technology, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00
Mathematics, 07.06.2020 06:00