Question: Consider the two 68000 programs given in Figure P3.1. (a) Do these programs leave the same value in location RSLT? (b) What task(s) do they
Consider the two 68000 programs given in Figure P3.1.
(a) Do these programs leave the same value in location RSLT?
(b) What task(s) do they accomplish?
(c) How many bytes of memory are needed to store each program?
(d) Which program requires the larger number of memory accesses?
(e) What are the advantages and disadvantages of these programs?
Program 1 Program 2 CLR.L DO MOVE.W #$FFFF,DO MOVEA.L #LIST,AO MOVEA.L #LIST,A0 LOOP MOVE.W (A0)+,D1 LOOP LSL.W (AO)+ BGE LOOP BCC LOOP ADDQ.L #1,D0 LSL.W #1,D0 CMPI #17,D0 BCS LOOP BLT LOOP MOVE.W -2(A0), RSLT MOVE.W -2(AO),RSLT Figure P3.1 Two 68000 programs for Problem 3.29.
Step by Step Solution
3.37 Rating (147 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
