Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q.4 a. Complete the final result in the destination register after executing the following instructions. These instructions are executed sequentially. All answers should be in
Q.4 a. Complete the final result in the destination register after executing the following instructions. These instructions are executed sequentially. All answers should be in hexadecimal (hex). Register Content R20 R21 B4 R22 13 R23 87 A3 R20 R21 R22 R23 RI RO Instruction MULS R20, R21 MUL R22, R23 MULSU R21, R22 LSL R20 ANDI R21, $AA CBR R22,50 NEG R23 (10 marks) b. Write an assembly program to find the MAX (maximum), MIN (minimum) and MEAN (average) values from Test 1 marks of 64 students from SKEE 3223 course. The marks are stored in memory address starting at $400. Find the MAX, MIN, MEAN and send the results to PORTB, PORTC, and PORTD respectively. You must use loop(s). (15 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started