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

I need help with my homework. If anyone can answer these 2 question that I have

ID: 3722744 • Letter: I

Question

I need help with my homework. If anyone can answer these 2 question that I have attached I will be really appreciated.

The language is LC3

Answer the following questions based on the instruction given below 0001 001 010 000 100 Which operation does this instruction perform? Please enter ADD, LDR, JMP, etc. Where does the result get stored? Please enter RO R7 If the registers hold the following values, what would be the result of this operation? Enter your result as a decimal integer RO 0000 0000 0000 0001 R1·0000 0000 0000 0010 R2 0000 0000 0000 0011 R3 0000 0000 0000 0100 R4 0000 0000 0000 0101 RS 0000 0000 0000 0110 R6 0000 0000 0000 0111 R7-0000 0000 0000 1000 Answer the following questions based on the instruction and the register values given below 0110 011 000 100011 RO 0000 0000 0000 0001 R 1 = 0000 0000 0000 001 0 R2 0000 0000 0000 0011 R3 0000 0000 0000 0100 R4 0000 0000 0000 0101 R5 0000 0000 0000 0110 R6 0000 0000 0000 0111 R7·0000 0000 0000 1000 Which operation does this instruction perform? Please enter ADD, LDR, JMP. etc. Where does the result get stored? Please enter RO-R7 What is the offset value? Enter your result as a decimal integer Contents of which memory address will be loaded to the destination? Enter your result as a decimal integer

Explanation / Answer

for 0001 001 010 000 100

Operation:ADD R1,R2,R4

Result is stroed in R1(because the result sis R1<-R1+R2+R4)

The decimal value = 2+3+5 = 10

for 0110 011 000 100011

LDR R3,R0,#35

The result is stored in R3

The offset value is 100011. The value of offset in decimal =35

Cintents of memory address will be loaded to the destination: R0, The result is 36

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote