Question: 6 . ( 5 0 pts ) Build an assembly language subroutine named SuperfyR 0 that will find the largest of the values in the
pts Build an assembly language subroutine named SuperfyR that will find the largest of the
values in the registers R R R and R and copy that value into R For example, if R contains
R contains R contains and R contains when your subroutine is called, when your
subroutine is finished R will contain R will contain R will contain and R will contain
Your subroutine must be placed at address x in program memory and must use only instructions
that are contained in the CS AVR instruction subset. Your subroutine cannot use any data memory
locations or any registers other than R R R and R to solve this problem. Note: Only these instructions should be used ADD, ADC, CP CPI, NEG, COM, AND, ANDI, EOR, OR ORI, LSR ASR, BRBC BRBS JMP RJMP CALL, RCALL, RET, RETI, MOV, IN OUT, LDI, LDS PUSH, POP, NOP, STS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
