Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EX.2 (4 points) Consider the instruction format for the hypothetical machine in below figure. CPU registers 3.0 OPC 30 1PC 0 0 0 3 AC

image text in transcribedimage text in transcribed

EX.2 (4 points) Consider the instruction format for the hypothetical machine in below figure. CPU registers 3.0 OPC 30 1PC 0 0 0 3 AC 1 9 4 0 IR 3022 94 CPU registers Memory 3001 40 301 5 9 41 302294 Memory 300 1940 AC 301 S 941 194 O IR 940 OO 03 9410002 Step 1 Memory 300 19 4 0 301 S 941 302 2 9 41 940 OOO3 941 OOO 2 Step 2 CPU registers Memory 30 IPC 300 1940 000 3 AC 301 S 941 594I IR 302 2 9 4 CPU registers 3.0 2PC OOO SAC 594 IR 940 0003 941 OOO 2 Step 3 940 O O O 3 941 OOO 2 Step 4 CPU registers Memory 3.0 2PC 300 1940 0 0 0 5 AC 3015941 2 9 4 1 IR 302 2 941 Memory 300 1940 301 3941 3022 9 41 CPU registers 30 3 PC 000 5 AC 2 9 4 1 IR 940 000 941 O 0 0 2 Step 5 940 OOO 941 ODOS Step 6 1 0001 = Load AC from memory 0010 = Store AC to memory 0101 = Add to AC from memory 0011 = Load AC (the accumulator register) from an I/O device 0111 = Store AC to an I/O device With these instructions, a particular I/O device is identified by replacing the 12-bit address portion with a 12-bit device number. Remember that a number ending with a small h' means the number is a hexadecimal number. What is the hexadecimal string that expresses the following instructions? 1. Load AC from memory location 62h. [1 point] 2. Add the contents of memory location 451h to AC. [1 point] 3. Store AC to memory location Sh. [1 point] 4. Store AC to I/O device number 8h. [1 point]

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

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions