Question: Using the instruction set in Figure 6 . 5 , translate the following algorithmic operations into assembly code. Show all necessary . DATA pseudo -
Using the instruction set in Figure translate the following algorithmic operations into assembly code. Show all necessary DATA pseudoops.
a Add to the value of
b Add to the value of
c Set to the value
d If then output the value of otherwise input a new value of
e
While do
sum sum I;
;
End of the loop
Using the instruction set in Figure write a complete assembly language program including all necessary pseudoops that reads in numbers and counts how many nonnegative inputs it reads in until it encounters the first negative value. It then outputs that count and stops. For example, if the input data is then your program outputs the value because there are seven nonnegative values before the appearance of the negative value
Now modify your program from Practice Problem so that if you have not encountered a negative value after inputs, your program stops and outputs the value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
