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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, wyattlb97
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
image
Engineering, 04.07.2019 18:20, aly95
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
image
Engineering, 04.07.2019 19:10, ultimateapes
When subject to a steady load (within elastic range) over a long period of time, what is the major difference in material behavoir between steel and plastic?
Answers: 2
image
Engineering, 04.07.2019 19:20, lovenahofer
Apreheater involves the use of condensing steam at 100°c on the inside of a bank of tubes to heat air that enters at 1 atm and 25°c. the air moves at 5 m/s in cross flow over the tubes. each tube is 1 m long and has an outside diameter of 10 mm. what is the minimum value of nl needed to achieve an outlet temperature of t 75 c? what is the corresponding pressure drop across the tube bank?
Answers: 3
You know the right answer?
Select the pseudo-code that most closely corresponds to the following assembly code. assume that the...

Questions in other subjects:

Konu
Physics, 11.11.2020 09:10
Konu
Mathematics, 11.11.2020 09:10
Konu
English, 11.11.2020 09:10
Konu
Mathematics, 11.11.2020 09:10
Konu
Physics, 11.11.2020 09:10
Konu
Mathematics, 11.11.2020 09:10