Question

Given the following memory values and address instruction with an accumulator. Determine the values with the...

Given the following memory values and address instruction with an accumulator. Determine the values with the following instructions load into accumulator.
Word 16 contains 22
Word 18 contains 24
Word 20 contains 26
Word 22 contains 28
Word 24 contains 30
Word 26 contains 32
Word 28 contains 34


i. LOAD IMMEDIATE 16
ii. LOAD DIRECT 16
iii. LOAD INDIRECT 16
iv. LOAD IMMEDIATE 18
v. LOAD DIRECT 18
vi. LOAD INDIRECT 20
vii. LOAD IMMEDIATE 24
viii. LOAD DIRECT 26
ix. LOAD INDIRECT 22
x. LOAD DIRECT 28

(10 marks)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dear student,

First, we need to see the working of the mentioned addressing methods.

IMMEDIATE---> allocates the specified value to the accumulator.

DIRECT---> allocates the value present in the specified address to the accumulator.

INDIRECT---> allocates the value present in the specified value of the specified address to the accumulator.

i. LOAD IMMEDIATE 16

loads the value 16 to the accumulator. So, the accumulator value is: 16


ii. LOAD DIRECT 16

loads the value present in the address 16 to the accumulator. So, the accumulator value is: 22 (because address 16 is having the value 22).


iii. LOAD INDIRECT 16

loads the value present in the address 16 to the accumulator. So, the accumulator value is: 28 (because address 16 is having the value 22 and address 22 is having value 28)


iv. LOAD IMMEDIATE 18

loads the value 18 to the accumulator. So, the accumulator value is: 18


v. LOAD DIRECT 18

loads the value present in address 18 to the accumulator. So, the accumulator value is: 24 (because address 18 is having the value 24).


vi. LOAD INDIRECT 20

loads the value present in the address 20 to the accumulator. So, the accumulator value is: 32 (because the address 20 is having the value 26 and address 26 is having value 32)


vii. LOAD IMMEDIATE 24

loads the value 24 to the accumulator. So, the accumulator value is: 24


viii. LOAD DIRECT 26

loads the value present in the address 26 to the accumulator. So, the accumulator value is: 32 (because address 26 is having the value 32).


ix. LOAD INDIRECT 22

loads the value present in the address 22 to the accumulator. So, the accumulator value is: 34 (because the address 22 is having the value 28 and address 28 is having value 34)


x. LOAD DIRECT 28

loads the value present in the address 28 to the accumulator. So, the accumulator value is: 34 (because address 28 is having the value 34).

Thank you, If at all any doubts, feel free to contact through the comment section.

Add a comment
Know the answer?
Add Answer to:
Given the following memory values and address instruction with an accumulator. Determine the values with the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT