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: 3.4 15 Opcode Address Here, the 12-bit address identifies a particular 1/0 device (e.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 170 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 300 301 302 Memory Content 3005H 5940H 7006H CPU MEMORY System Bus Address Data Control Bus) ALU . Register Control Unt + Primary Memory (ROMAN) . Secondary Memory - Cache Memory 0002H 940 941 1/0 Input Devices (Keyboard, Mouse etc.) Output Device Monitor Printer 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions