Write a program in C to switch on and off an LED

The first step is to decide which type of microprocessor will be programmed, then decide which variation of the relevant assembly language should be used.

The complete MPU data sheet will list all the machine instructions.

Hello Thank you for responding my microprocessor is 328p

Where I can find MPU data?

The complete type would be ATmega328p. The data sheet is here.

Hint: an internet search for "atmega328p datasheet" will find it.

yes I have ATmega328p

can you showe me how to navigate data sheet

I have to look for Indirect or direct data

what is DuckDuckGo for?

Internet search engine that does not track or sell your personal data.

I have ATmega328p data sheets how to use it to write program in assembly language do you know

Before you begin, study the assembler program you will be using to assemble the program. That will tell you how to begin and hopefully will have examples.

There are plenty of assembly language tutorials on line.

Click on the link in post #48 to find many of them. Pick one or two and study the information carefully.

Since your post is clearly for a class, ask your teacher to recommend software for assembly language programming.

I have merged your cross-posts @zyraf30.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Those numbers are memory addresses. The “$” in front indicates that they are represented in hexadecimal. Nothing to do with prices.

Anas Kuzechie made many easy-to-follow assembly on Arduino videos... and it looks like he gave you your first answer.

Thanks for this.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.