Preview

Ac from Store

Good Essays
Open Document
Open Document
743 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Ac from Store
3.1 The hypothetical machine of figure 3.4 also 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.

[pic]

3.4 Consider a hypothetical microprocessor generating a 16-bit address (for example, assume that the program counter and the address registers are 16-bits wide) and having a 16-bit data bus.

a. What is the maximum memory address space that the process can access directly if it is connected to a 16-bit memory?

In this case, it can address 216 slots of memory. If each memory location has 16-bits then the amount of space that can be accessed directly is 216 x 2 bytes = 128 Kbytes.

b. What is the maximum memory address space that the process can access directly if it is connected to a 8-bit memory? It can address 28 slots of memory. If each memory location has 8-bits then the amount of space that can be accessed directly is 216 x 1 byte = 64 Kbytes.

c. What architectural features will allow this microprocessor to access a separate “I/O space?”

Separate I/O instructions are needed (opcodes), whose execution will generate reads and writes to the I/O devices. A separate line for I/O could be an answer as well.

d. If an input and an output instruction can specify an 8-bit I/O port number, how many 8-bit ports can the microprocessor support? How many 16-bit I/O ports? Explain.

For 8-bit port number, it can support 28 = 256 ports. For a 16-bit port number it should support the same amount since the instruction specifies an 8-bit port number. For those who might have misunderstood the question thinking that the instruction

You May Also Find These Documents Helpful

  • Good Essays

    1 Which statements are true concerning the shared memory buffering used by an Ethernet switch? (Choose two.)…

    • 2145 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Some OS routines directly support application programs as they run and thus must be resident. Other transient routines are stored on disk and read into memory only when needed. Fixed-length partitions can also be used to allocate the set amount of memory that a particular program needs to run. Under dynamic memory management, the transient area is treated as a pool of unstructured free space. When the system decides to load a particular program, a region of memory just sufficient to hold the program is allocated from the pool. Using segmentation, programs are divided into independently addressed segments and stored in noncontiguous memory. Paging breaks a program into fixed-length pages.…

    • 7085 Words
    • 29 Pages
    Good Essays
  • Satisfactory Essays

    BCA SEM I / BCA 1040 / Unit 1 Logic Design Self Assessment Questions 1.2 1. Decimal means base __________. 2. The decimal value of the bit pattern 11111111 is _________. 3.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    2. What type of instruction is used to execute different code based on a condition? -Jumps…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 3 Assignment 1

    • 2019 Words
    • 9 Pages

    + 0 + 0 0 0 + 0+ 1 1 0 0 8 + 4 + 0 + 0= 140 Address Classes • There are 5 different…

    • 2019 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    A. the CPU tells the RAM which address holds the data that the CPU wants to read…

    • 957 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    6. A user file has opened a word processor, typed the numbers 123456789, and stored the document as a file called report 1. Which of the following determines, in part what bits the computer stores in the file to represent the text typed into the report.…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Lab6 7 8 9

    • 425 Words
    • 2 Pages

    Is what is used to represent in the form of a binary number for the address bus.…

    • 425 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Interrupt-driven I/O: The processor issues an I/O command on behalf of a process, continues to execute subsequent instructions, and is interrupted by the I/O module when the latter has completed its work. The subsequent instructions may be in the same process, if it is not necessary for that process to wait for the completion of the I/O. Otherwise, the process is suspended pending the interrupt and other work is performed. Direct memory access (DMA): A DMA module controls the exchange of data between main memory and an I/O module. The processor sends a request for the transfer of a block of data to the DMA module and is interrupted only after the entire block has been…

    • 1721 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    POS355 Week 1 Individual

    • 574 Words
    • 2 Pages

    There are several items that are pertinent to memory management such as, basic hardware, the binding of symbolic memory addresses to definite physical addresses and the difference between logical and physical addresses. The most important task that memory management executes is the distribution and collection of memory…

    • 574 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The operating systems job is managing the memory. The operating system is in charge of bringing this process into main memory (Stallings, 2012). However the processor must deal with references within the program. Branch instructions include an address to reference the order to be executed next. Data reference instructions include the address of the byte or word of data referenced. The processor hardware and operating system software must be able to translate the memory references found in the code of the program into actual physical memory addresses, reflecting the current location of the program in main memory. (Stallings, 2012).…

    • 573 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    A. The CPU tells the RAM which address holds the data that the CPU wants to read (Answer)…

    • 418 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    E4.6: The label array_x is the starting address of an array of 100 8bit elements.…

    • 900 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro the Programming

    • 386 Words
    • 5 Pages

    The _______ is the memory address that is saved by the system when a method is called and is the location to which…

    • 386 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    15. If you attempt to add a float, an int, and a byte, the result will be a(n)…

    • 316 Words
    • 2 Pages
    Satisfactory Essays

Related Topics