Question
Hello, I am new to assembly especially in avr. I am trying to learn how to use the X, Y and Z pointers to store
Hello, I am new to assembly especially in avr.
I am trying to learn how to use the X, Y and Z pointers to store 200 numbers starting from 25 to 226.
For all 200 numbers I want to separate them into 4 categories depending on the following:
1. if the number is divisible by 7 store the number starting from memory location 0x0500
2. if the number is divisible by 3 store the number starting from memory location 0x0600
3.if they are divisible by both store them at 0x0700
4. else store at location starting at 0x0800
you can use any register you want to process the calculations
I would really appreciate the help. I tried looking up concepts online but it was very confusing. Hopefully I'll get the help now from an expert. I will be rating the answer as soon as I get one.
Also, I am using Atmel Studio 7.0 so I would also appreciate it if you also use Atmel Studio.
One more thing please explain in each step why you are doing it so that I understand and can actually learn.
Thank you so much in advance
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