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
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 06.07.2019 04:10
Areheat rankine cycle operates with water as the working fluid. steam enters the first turbine at 8 mpa and 450°c and exits at 0.8 mpa. it is then reheated to 400°c before entering the second turbine, where it exits at 10 kpa. if the amount of work into the pump is 8.04 kj/kg and the net work per cycle produced is 1410.25 kj/kg, determine the thermal efficiency of the cycle.
Answers: 3
question
Engineering, 06.07.2019 05:10
Comment on the effect of lubrication of the punch surfaces on the limiting drawing ratio in deep drawing.
Answers: 3
question
Engineering, 06.07.2019 05:30
There is a metal plate with thickness, thermal conductivity, density, and specific heat of 10 mm, 200 w/m.°c, 2500 kgrn3, and 900 j/kg.k, respectively. it has an initial uniform temperature of 22°c and is being heated in an oven for 2 minutes. air in the oven is maintained at 900 c with convection heat transfer coefficient of 190 w/m.k. determine the temperature of the plate when it is removed from the oven.
Answers: 3
You know the right answer?
Select the pseudo-code that most closely corresponds to the following assembly code. assume that the...
Questions
question
Mathematics, 28.01.2020 08:31
Questions on the website: 13722363