Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Translate the following instruction into machine language described in Appendix C. (4 points each) (1) AND the bit patterns found in register 3 and register

image text in transcribed
image text in transcribed
Translate the following instruction into machine language described in Appendix C. (4 points each) (1) AND the bit patterns found in register 3 and register 5 and place the result in register 9. (2) LOAD the register A with the bit pattern found in the memory cell whose address is 75. Suppose you want to complement a byte. What mask you must use together with what operation? (4 points) - Performing a 3-bit right circular shift (rotation) on the following bit pattern. (4 points) 11000010 Suppose the memory cells at addresses AO through A3 in the machine described in Appendix C contain the following bit patterns. (4 points) Address Contents 00 34 01 23 02 01 a. What is the 1s instruction that will be executed if we start the machine with its program counter containing 00? b. What is the 1st instruction that will be executed if we start the machine with its program counter containing 01? The Machine Language in Appendix C IRXY LOAD the register R with the bit pattern found in the memory cell whose address is XY 2RXY LOAD the register R with the bit pattern XY. 3RXY STORE the bit pattern found in register R in the memory cell whose address is XY 40RS MOVE the bit pattern found in register R to register S. SRST ADD the bit patterns in register S and T and as though they were two's complement representations and leave the result in register R. 6RST ADD the bit patterns in register S and T and as though they represent values in floating-point notation and leave the result in register R. 7RST OR the bit patterns in registers S and T and place result in register R. SRST AND the bit patterns in registers S and T and place result in register R. ORST XOR the bit patterns in registers and T and place result in register R. AROX ROTATE the bit pattern in register R one bit to the right X times. Each time place the bit that started at the low order end at the high order end. BRXY JUMP to the instruction located in the memory cell at address XY if the bit pattern in register R is equal to the bit pattern in the register number 0. Otherwise, continue with normal sequence of execution. C000 HALT execution Hexadecimal table Hexadecimal Bit Pattern Representation Hexadecimal Representation Bit Pattern 0 0000 0001 0010 0011 0100 0101 0110 0111 2 3 1000 1001 1010 1011 1100 1101 1110 1111 o ac A 5 E F 7

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

More Books

Students also viewed these Databases questions