Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Consider a hypothetical machine containing a single data register, called an accumulator (AC). Both instructions and data are 16 bits long. The instruction format

image text in transcribed

(a) Consider a hypothetical machine containing a single data register, called an accumulator (AC). Both instructions and data are 16 bits long. The instruction format is shown below: 34 Opcode Address Here, the 12-bit address identifies a particular 1/0 device (c.g., device 1, device 2, device 3...and so on). The opcode for the two I/O instructions are: 3H=0011= Load AC from I/O (moves data contained in 1/0 device to AC) 7H = 0111= Store AC to 1/0 (moves data contained in AC to the 1/0 device 5H=0101 = Add to AC from Memory Hint: The first 4 bits (first hexadecimal digit) in the IR indicate the type of the operation. That means if IR contains 3H, it will be a load operation and if IR contains 7H it is a store operation. We will assume that the memory (contents in hex) as the following table: PC Address Memory Content 300 3005H 301 5940H 302 7006H CPU MEMORY System Bus Mery ROM/MM 0002H 940 941 1/0 Devices - De Show the steps involved in the execution of the following program ( 6 marks] Load AC from device 5 (Assume that the next value received from device 5 is 3) Add contents of memory location 940 to the content of (Assume that the location 940 contains value of 2). Store AC to device 6 (b) Consider a hypothetical 32-bit microprocessor having 32-bit instructions composed of two fields: the first byte contains the opcode and the remainder the immediate operand or an operand address (1) What is the maximum directly addressable memory capacity (in bytes)? | 2 marks] (ii) How many bits are needed for the program counter and the instruction register? [2 marks] (a) Consider a hypothetical machine containing a single data register, called an accumulator (AC). Both instructions and data are 16 bits long. The instruction format is shown below: 34 Opcode Address Here, the 12-bit address identifies a particular 1/0 device (c.g., device 1, device 2, device 3...and so on). The opcode for the two I/O instructions are: 3H=0011= Load AC from I/O (moves data contained in 1/0 device to AC) 7H = 0111= Store AC to 1/0 (moves data contained in AC to the 1/0 device 5H=0101 = Add to AC from Memory Hint: The first 4 bits (first hexadecimal digit) in the IR indicate the type of the operation. That means if IR contains 3H, it will be a load operation and if IR contains 7H it is a store operation. We will assume that the memory (contents in hex) as the following table: PC Address Memory Content 300 3005H 301 5940H 302 7006H CPU MEMORY System Bus Mery ROM/MM 0002H 940 941 1/0 Devices - De Show the steps involved in the execution of the following program ( 6 marks] Load AC from device 5 (Assume that the next value received from device 5 is 3) Add contents of memory location 940 to the content of (Assume that the location 940 contains value of 2). Store AC to device 6 (b) Consider a hypothetical 32-bit microprocessor having 32-bit instructions composed of two fields: the first byte contains the opcode and the remainder the immediate operand or an operand address (1) What is the maximum directly addressable memory capacity (in bytes)? | 2 marks] (ii) How many bits are needed for the program counter and the instruction register? [2 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Health Care Management

Authors: Sharon B. Buchbinder, Nancy H. Shanks

3rd Edition

128408101X, 9781284081015

Students also viewed these Accounting questions

Question

Cite ways to overcome fear of failure.

Answered: 1 week ago