Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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