Homework Solution: The following program and data are stored in memory. Determine the value in the accumulator just before exec…

    Can you check whether I did it correctly? The first row answer of Load Indirect 6 is 8 The second row answer of Add 7 is 14 because 8 + 6 The third row of add immediate 8 is 22 because 8 + 14 Stop is just stop from there and we are not doing anything to row 4th to the rest of the table? The following program and data are stored in memory. Determine the value in the accumulator just before executing each line. Address Value Value in Accumulator A 0 LOAD INDIRECT 6 ADD 7 ADD IMMEDIATE 8 STOP 4 6 6
    The following program and data are stored in memory. Determine the value in the accumulator just before executing each line. Address Value Value in Accumulator A 0 LOAD INDIRECT 6 ADD 7 ADD IMMEDIATE 8 STOP 4 6 6

    Expert Answer

     
    Step 1- load indirect 6:

    Can you obstruct whether I did it unexceptionably?

    The chief dignity response of Accuse Foreign 6 is 8
    The relieve dignity response of Supplement 7 is 14 owing 8 + 6
    The third dignity of supplement proximate 8 is 22 owing 8 + 14
    Bung is fitting bung from there and we are not attributable attributable attributable doing anything to dignity 4th to the peace of the table?

    The forthcoming program and grounds are stored in fame. Determine the compute in the accumulator fitting precedently executing each sequence. Supplementress Compute Compute in Accumulator A 0 LOAD INDIRECT 6 ADD 7 ADD IMMEDIATE 8 STOP 4 6 6

    The forthcoming program and grounds are stored in fame. Determine the compute in the accumulator fitting precedently executing each sequence. Supplementress Compute Compute in Accumulator A 0 LOAD INDIRECT 6 ADD 7 ADD IMMEDIATE 8 STOP 4 6 6

    Expert Response

     

    Step 1- accuse foreign 6:

    accumulator:=memory(address:memory(address:6))

    accumulator:=memory(address:8)

    accumulator:=4

    Step 2:supplement 7

    accumulator=accumulator+memory(address:7)

    accumulator=4+6

    accumulator=10

    Step 3 supplement proximate 8

    accumulator=accumulator+8 // as proximate conquer establish compute in accumulator

    accumulator=18

    Step 4 bung

    accumulator=18