user55952: Does anyone know what it means by the Atmega 328p has 131 instructions? And could you give an example of how any one of these 131 instructions look like?
Thanks in advance!!

user31105: A CPU or MCU uses very basic instructions which are executed.
If you write code in a program language (like in Arduino IDE), the sketch is converted into many instructions (by the compiler and linker).
The instruction set can be found here.
An example is:
ADC Rd, Rr: Adds two registers and the contents of the C flag and places the result in the destination register Rd.
A CPU/MCU uses registers, which can be seen as very fast 'variables', mostly there are quite few of them, and all operators (like +, -, *, /) are carried out using these registers.
If you are just starting Arduino, it's not so useful to dive into this, the compiler/linker will take care of these 'details'; just be glad you don't have to write in assembly (anymore).

55952: <p>Does anyone know what it means by the Atmega 328p has 131 instructions? And could you give an example of how any one of these 131 instructions look like?
Thanks in advance!!</p>
 31105: <p>A CPU or MCU uses very basic instructions which are executed.</p>

<p>If you write code in a program language (like in Arduino IDE), the sketch is converted into many instructions (by the compiler and linker).</p>

<p>The instruction set can be found <a href="https://www.microchip.com/webdoc/avrassembler/avrassembler.wb_instruction_list.html" rel="nofollow noreferrer">here</a>.</p>

<p>An example is:</p>

<p><code>ADC Rd, Rr</code>: Adds two registers and the contents of the C flag and places the result in the destination register Rd.</p>

<p>A CPU/MCU uses registers, which can be seen as very fast 'variables', mostly there are quite few of them, and all operators (like +, -, *, /) are carried out using these registers.</p>

<p>If you are just starting Arduino, it's not so useful to dive into this, the compiler/linker will take care of these 'details'; just be glad you don't have to write in assembly (anymore).</p>
