Question: 1. Write the Assembly code fragment to implement each of the given pseudo-code. a. Sum = 0; For count = -10 to 50 { add
1. Write the Assembly code fragment to implement each of the given pseudo-code.
a. Sum = 0;
For count = -10 to 50
{ add count to Sum;}
b. Sum = 1000
For count = 100 downto 50
{subtract 2*count from Sum;}
c. Count = 0;
Sum = 500; While (Count <=60) and (Sum > 200) {subtract Count from Sum; Add 5 to Count}
2. Write the assembly code fragment to implement each given pseudo-code
a. if (ch > a) and (ch <= z) {add 1 to lowerCount;} Else { if (ch > A and (ch b. If (value < 500) or (count < 10) {add 10*count to value;} Else {value = 80; Subtract 1 from count;} 3. Write an interactive application that performs the following function: Repeatedly ask the user for a positive integer less than or equal to 100, until the user enters 0 or a negative number. Then display the product of the positive numbers entered by the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
