Question: Assembly Language Implement each design given below. Assume that value is stored as a doubleword in memory, number is in EAX, and count is in
Assembly Language
Implement each design given below. Assume that value is stored as a doubleword in memory, number is in EAX, and count is in ECX.
(a)
number := 0;
value := 500;
while number 60 and value > 200 loop
subtract number from value;
add 5 to number;
end while;
(b)
while (count < 100) and (value 500) loop
add count to value;
add 2 to count;
end while;
(c)
while (count < 100) or (value 500) loop
add count to value;
add 2 to count;
end while;
(d)
number := 0;
value := 500;
while number 100 or value > 300 loop
subtract number from value;
add 5 to number;
end while;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
