Question: Given the following 68000 program, answer the two questions below MOVEA.L #LISTI , MOVEA.L MOVEA.L MOVE AO #LIST2, Al #LIST3, A2 NUM, DC (A0)+, D2

 Given the following 68000 program, answer the two questions below MOVEA.L

Given the following 68000 program, answer the two questions below MOVEA.L #LISTI , MOVEA.L MOVEA.L MOVE AO #LIST2, Al #LIST3, A2 NUM, DC (A0)+, D2 LOOP.MOVE B MOVE.B (A1)+, D3 CMPB 1)2, D2. D3 BLE NEXT MOVE 1)2,D3 NEXT: MOVEBD3 SUBQ # IDO BNE HALT LOOP a) (10 pts) What does this program do? Note that BLE branch on lower than or equal and BNE branch on (result of the pervious instruction) not equal (to zero) "CMP.B D2, D3" compares the least significant (rightmost) byte ofD3 to that of D2, but will NOT change the contents ofD2 or D3 b) (30pts) Assume that LISTI SACOOO0 is the starting memory address of three consecutive 16-bit data words: 7048, 16, 2014 (all in decimal). LIST2 = $ACAOOO is the starting memory address of three consecutive 16-bit data words: 22, -17, -41 (all in decimal). Memory word location NUM contains the number of 6. Write down the contents (in hexadecimal) of the three consecutive 16-bit data words that start at LIST3 = $ACBOOO. Please assume 2 's complement for negative numbers Also note that BLE compares signed numbers. For example, Ox06 is greater than QxEE if they are interpreted as signed numbers. (5pts for each byte)

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!