Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

Decide if these two are similar. 1-1 4 -3 -1 0 1-1

Answered: 1 week ago