Question: 27. Consider the program below. a. What does the program do? Be concise. b. Are the list items signed or unsigned? How do you

27. Consider the program below. a. What does the program do? Be concise. b. Are the list items signed or

27. Consider the program below. a. What does the program do? Be concise. b. Are the list items signed or unsigned? How do you know? c. What value is assigned to the symbol LENGTH by the assembler? d. What specific changes would need to be made to the previous program so that it now worked with words rather than longwords? e. How many times does the BEQ.S instruction execute? COUNT LIST1 LIST2 LENGTH START LOOP ELSE DONE ORG DS.W DC.L 1,2,3,4,5,6,7,8,9,0 DC. L 0,9, 8,7,6,5,4,3,2,1 EQU LEA LEA $400 1 CLR.L MOVE. W TST.W BEQ.S CMPM. L BLE.S ADDQ.W SUBQ.W BRA. S MOVE.W END (*-LIST2)/4 LIST1, A1 LIST2, A2 DO #LENGTH, D1 D1 DONE (A1) +, (A2)+ ELSE #1, DO #1,D1 LOOP DO, COUNT START

Step by Step Solution

3.33 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The program compares two lists LIST1 and LIST2 of longwords and counts the number of elements in L... View full answer

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 Programming Questions!