Question: 1. Enter and the following Falcon code. What is this code doing? .CODE CLR RO! RO is LIST index CLR AC : LOOP ADD #LIST

 1. Enter and the following Falcon code. What is this code

1. Enter and the following Falcon code. What is this code doing? .CODE CLR RO! RO is LIST index CLR AC : LOOP ADD #LIST [RO+] TEST #LIST[RO] JNE #LOOP SAVE @ #RESULT HALT . DATA : RESULT .NUM #0 : LIST .NUM #2 .NUM #4 NUM #-6 .NUM #-2 .NUM #3 END 2. Modify the above code so that it outputs the word "POSITIVE if the RESULT at the end is positive or null (and nothing if it is negative). Add your name and student ID at the top of your code. Assemble and run the program then take a screenshot. You can change the values of the list to test your code and make sure that it works as intended. A14_Architecture_Control_Structures CP1050 Page 1 of 2 Lesson Plan 3. Modify the above code so that it outputs the word "POSITIVE if the RESULT at the end is positive or null and the word "NEGATIVE if it is negative. Add your name and student ID at the top of your code. Assemble and run the program then take a screenshot. You can change the values of the list to test your code and make sure that it works as intended. 4. Modify the above to add only the negative elements of the list (in the given example it will add -6 and -2 only). Add your name and student ID at the top of your code. Assemble and run the program then take a screenshot. 5. Modify the above code so that it counts the number of negative numbers in the list and stores the outcome in RESULT (in the given example the outcome should be 2). Add your name and student ID at the top of your code. Assemble and run the program then take a screenshot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!