Question

The hypothetical machine of Figure 3.4 has two I/O instructions:

0011 = Load AC from I/O

0111 = Store AC to I/O

In these cases, the 12-bit address identifies a particular I/O device. Show the program execution (using the format of Figure 3.5) for the following program:

1. Load AC from device 5.

2. Add contents of memory location 940.

3. Store AC to device 6.

Assume that the next value retrieved from device 5 is 3 and that location 940 contains a value of 2.

34 Opcode Address (a) Instruction format Magnitude (b) Integer format Program counter (PC) = Address of instruction Instructi

The answer is

Step1: 3005 -> IR

Step2: 3->AC

Step3: 5940->IR

Step4: 3+2=5->AC

Step5: 7006->IR

Step6: AC-> Device6

How did the step 3 5940 come from and step 5 how did 7006 come from?

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

ANSWER textbook: pacgiam execution as per figuue 3.5 from Stepl. instanuction Register (IR) <3005 step2: Accumulator (AC 4-3stemmer som steps - The_ content of address locatlon cos is moved to the accumulatow and fosturuction. Aegistej__holds theStele The hentinstuuston (100.6.2 is fetched _302_ and pc is incremented from location - Memory 005 0003 CPU Register 303 Pc

Add a comment
Answer #2
Question 1: Describe the fetch and execution cycles by executing the following instructions. 0001 Load AC from memory 0010 Add AC from memory 0011 And AC from memory 0100 OR AC from memory 0101 Store AC to memory ( indirect) AC PC Note : Explain your answer by drawing h000 1001 h001 2002 h002 3003 h003 4004 h004 5005 h005 6006 h006 7007 h007 8008
answered by: Hayo
Add a comment
Know the answer?
Add Answer to:
The hypothetical machine of Figure 3.4 has two I/O instructions: 0011 = Load AC from I/O...
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