Question
I am new to assembly and would appreciate the help. I want to write an assembly code in avr that would store 200 numbers starting
I am new to assembly and would appreciate the help.
I want to write an assembly code in avr that would store 200 numbers starting from 25 to 226.
I am using atmel studio
please use X/Y/Z registers and custom memory addressing (R23:R22 and R25:R24) to go through the 200 numbers. If the number is divisible by 7 store the number starting from memory location 0x0500, if the number is divisible by 3 store the number starting from memory location 0x0600, if they are divisible by both store them at 0x0700, else store at location starting at 0x0800. Store the sum of the numbers at R3:R2:R1, R6:R5:R4, R9:R8:R7, R12:R11:R10, R15:R14:R13 respectively.
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