subject
Engineering, 28.01.2020 01:31 codycollier

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.

.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
mov ebx, a
startloop:
cmp eax, ebx
jge endofprogram
mov edx, offset no
call writestring
inc eax
jmp startloop
mov edx, offset maybe
call writestring
endofprogram:
exit
main endp
end main

while (a < 18)
print (no);
else
print (maybe);
if (a < b)
print (no);
else
print (maybe);
for (k = 0; k < a; k++)
print (no);
while (a > 0)
print (no);

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:10
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
Answers: 2
question
Engineering, 04.07.2019 19:20
Apiping systems consists of 6 m of 6-std type k and 12 m of 4-std type k, both drawn copper tubing. the system conveys ethylene glycol at a rate of 0.013 m3/s. the pressure drop across the system is to be calculated. there are two 90° elbows in the 6-in pipe, a reduction from the 6-in pipe to the 4-in pipe and four 90° elbows in the 4-in pipe. all fittings are soldered (same as flanged) and regular. the inlet and outlet of the system are at the same height.
Answers: 1
You know the right answer?
Select the pseudo-code that most closely corresponds to the following assembly code. assume that the...
Questions
question
Social Studies, 11.09.2020 01:01
question
Social Studies, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
History, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Chemistry, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
English, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Mathematics, 11.09.2020 01:01
question
Physics, 11.09.2020 01:01
question
Chemistry, 11.09.2020 01:01
Questions on the website: 13722366