Question: ASAP 1. While loop (10 pts) When programming, you may not know the length of a list of data, but the list can be marked

ASAP

ASAP 1. While loop (10 pts) When programming, you may not know

1. While loop (10 pts) When programming, you may not know the length of a list of data, but the list can be marked at the end by a character like zero or a negative number. In this case, use a "while" loop to process the data. Trace this assembly program by: showing the contents of the registers, the contents of memory, comment each line of code, and find the value of Sum at the end List: Sum: data .byte 2,4,6,8, 0xA, 0 .byte 0 . text mov. W mov.b cmp. #List, R5 CR5, R6 #0,R6 Done R6, Sum R5 Loop LOOP add.b inc.w mp Done: mp

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!