Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 : 0 5 4 4 . Given a hypothetical Machine with CPU and Memory and opcodes below: ( 1 5 points ) table

2:054
4. Given a hypothetical Machine with CPU and Memory and opcodes below: (15 points)
\table[[Memory],[300,1941],[301,5940],[302,2941],[303,9942],[304,8940],[dots,],[940,0007],[941,0002],[942,0005]]
\table[[\table[[CPU],[Regist],[ers]]],[300,PC],[,AC],[,IR]]
Where each opcode is defined below:
0001= Load AC from memory
0010= Store AC to memory
0101= Add AC from memory
2:05
Where each opcode is defined below:
0001= Load AC from memory
0010= Store AC to memory
0101= Add AC from memory
1000= Load I/O to memory
1001= Store AC to IO,(I/O number is stored in a memory location)
I/O number 5 refers to a monitor
I/O number 6 refers to a printer
I/O number 7 is the sensor connected to the machine
Trace the execution starting from Program Counter=300(PC =300) and answer the following questions:
(a). when PC=300, what does CPU do and what is the content in AC, IR and memory location 940-942?
(b). when PC=301, what does CPU do and what is the content in AC,IR and memory location 940-942?
(c). when PC=302, what does CPU do and what is the content in AC, IR and memory location 940-942?
(d). when PC=303, what does CPU do and what is the content in AC and IR?
(e). when PC=304, what does CPU do and what is the content in memory 940 and 941?
image text in transcribed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

_________ is the bodys reaction to environmental demands.

Answered: 1 week ago

Question

Write an elaborate note on marketing environment.

Answered: 1 week ago