Thursday, April 20, 2017

The hypothetical machine has two I/O instructions: 0011= Load AC fro I/O 0111= Store AC to I/O Solutions

Problem Set :

The hypothetical machine of figure 3.4 also has two I/O instructions:
0011= Load AC fro 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 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 received from device 5 is 3 and that location 940 contains value of 2.


Solution:

The hypothetical machine has two I/O instructions: 0011= Load AC fro I/O 0111= Store AC to I/O Solutions
Figure (Say)


We will assume that the memory (contents in hex) as the previous table:
300: 3005; 301: 5940; 302: 7006
Therefore, the steps will be as the following:
Step 1: 3005 → IR
Step 2: 3 → AC
Step 3: 5940 → IR
Step 4: 3 + 2 = 5 → AC
Step 5: 7006 → IR
Step 6: AC → Device 6



8 comments:

  1. Replies
    1. The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download Now

      >>>>> Download Full

      The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download LINK

      >>>>> Download Now

      The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download Full

      >>>>> Download LINK pf

      Delete
  2. A hypothetical machine has five instructions:
    0001 Store AC to memory
    0010 multiply to AC from memory
    0101= Add to AC from memory
    0011 Load AC from VO
    0111 Store AC to Io
    In these cases, the 12-bit address identifies a particular I/O device. Show the program
    execution of the following program
    1. Load AC from device 5.
    2. Add contents of memory location 940.
    3. Multiply contents of memory location 941
    4. Store AC to memory 940.
    3. Store AC to device 6.
    Assume that the next value retrieved from device 5 is 3 and that location 940 & 941
    contains a value of 2 and 7 respectively.
    (Solved This problem)

    ReplyDelete
  3. why we have to start from 300?

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download Now

    >>>>> Download Full

    The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download LINK

    >>>>> Download Now

    The Hypothetical Machine Has Two I/O Instructions: 0011= Load Ac Fro I/O 0111= Store Ac To I/O Solutions - Maniruzzaman Akash'S Blog >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete