Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

aegg Chegg Lite https:/ e Question Completion Status QUESTION 10 10 Using the ma

ID: 3742773 • Letter: A

Question

aegg Chegg Lite https:/ e Question Completion Status QUESTION 10 10 Using the machine language in Appendix C of your textbook, write a simple program that does the following 1. Load register O with the bit pattern C1 (hexadecimal) 2. Rotate the bit pattern in register O to the right 3 times 3. Terminate NOTE: Enter each instruction on a separate line in your answer program execution TT!Arial Wordsn Cliek Save and Submit to save and submit. Click Save All Answers to save all answers Save All Answ O Type here to search

Explanation / Answer

The program will be

20C1

A003

C000

opcode operand description 2 RXY IMMEDIATE LOAD the register R with the bit pattern XY. E.g., 20C1 would cause the value C1 to be placed in register 0. A R0X 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 to the high-order end. E.g., A003 would cause the contents of register 0 to be rotated 3 bits to the right in a circular fashion. C 000 HALT instruction, stop execution. E.g. C000 stops execution.