A program trace is a listing of the contents of certain registers and memory locations at different
Question:
A program trace is a listing of the contents of certain registers and memory locations at different times during the execution of a program. List the contents of registers DO, DI, and A2 and memory locations N, NUM1, and SUM after each of five executions of the ADD. W instruction and after execution of the last MOVE.L instruction in the program in Figure 3.25. Present the results in a table that has the registers and memory locations as column headers. Use six rows to list the contents of the registers and memory locations after execution of each of the instructions. Assume the following initial values: [SUM] = 0, [N] = 5, NUM1 = 2400, and the five numbers are 83, 45, 156,-250, and 100.
Step by Step Answer:
Computer Organization
ISBN: 9780072320862
5th Edition
Authors: V Carl Hamacher, Carl Hamacher, Zvonko G Vranesic, Safwat G Zaky