Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose the memory cells at addresses 00 through 05 in the machine described in machine language given with this assignment (Appendix C) contain the following

image text in transcribed

image text in transcribed

Suppose the memory cells at addresses 00 through 05 in the machine described in machine language given with this assignment (Appendix C) contain the following bit patterns: 3. CPU Main Memory Address Contents 1 Program Bus 01 02 03 04 32 02 CO s Register OC Using the form below run the program, then briefly describe what this program did. CPU Main Memory 1 Program Register FD CPU Main Memory 1 Program 5 Register FD Machine Code from Annendix C 0 p- code Operand Description 1 PXY hDeh the bit pattern found in the memory cell whose address is XY. 2 LOAD the register R with the bit pattern XY. address is XY MOVE the bit pattern found in register R to register S. RXY 3 STQRE the bit pattern found in register R in the memory cell whose RXY 4 ORS 5 ADD t complement representations and leave the result in register R RST he bit patterns in registers S and T as though they were two's 6 RST ADD the bit patterns in registers S and T as though they represented values in floating-point notation and leave the floating-point result in register R 7 RST OR the bit patterns in registers S and Tand place the result in register R. 8 RST AND the bit patterns in register S and T and place the result in register R. 9 RST EXGLUSIVE OReth bit paterns in registers S and T and place the result in register R. ROTTEc eittarin register R one bit to the right Xtimes.Each started at the low-order end at the high-order end B JUMP to the instruction located in the memory cell at address XY if the RXY it pattern in register R is equal to the bit pattern in register number. Otherwise, continue with the normal seqience of execution. (The ump is implemented by copying XY into the program counter during e execute phase.) C 000 HALT execution. Suppose the memory cells at addresses 00 through 05 in the machine described in machine language given with this assignment (Appendix C) contain the following bit patterns: 3. CPU Main Memory Address Contents 1 Program Bus 01 02 03 04 32 02 CO s Register OC Using the form below run the program, then briefly describe what this program did. CPU Main Memory 1 Program Register FD CPU Main Memory 1 Program 5 Register FD Machine Code from Annendix C 0 p- code Operand Description 1 PXY hDeh the bit pattern found in the memory cell whose address is XY. 2 LOAD the register R with the bit pattern XY. address is XY MOVE the bit pattern found in register R to register S. RXY 3 STQRE the bit pattern found in register R in the memory cell whose RXY 4 ORS 5 ADD t complement representations and leave the result in register R RST he bit patterns in registers S and T as though they were two's 6 RST ADD the bit patterns in registers S and T as though they represented values in floating-point notation and leave the floating-point result in register R 7 RST OR the bit patterns in registers S and Tand place the result in register R. 8 RST AND the bit patterns in register S and T and place the result in register R. 9 RST EXGLUSIVE OReth bit paterns in registers S and T and place the result in register R. ROTTEc eittarin register R one bit to the right Xtimes.Each started at the low-order end at the high-order end B JUMP to the instruction located in the memory cell at address XY if the RXY it pattern in register R is equal to the bit pattern in register number. Otherwise, continue with the normal seqience of execution. (The ump is implemented by copying XY into the program counter during e execute phase.) C 000 HALT execution

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

Explain the process of MBO

Answered: 1 week ago