| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:multiasm:piot:chapter_4_7 [2026/01/19 11:43] – [Table] marcin | en:multiasm:piot:chapter_4_7 [2026/03/01 19:57] (current) – ktokarz |
|---|
| ====== Instruction Set ====== | ====== Instruction Set ====== |
| |
| The assembler instruction set includes arithmetic, logical, control, and input/output operations. Arithmetic instructions include addition, subtraction, multiplication, and division. Logical instructions include operations such as AND, OR, XOR, and NOT. Control instructions include jumps, loops, and conditions. Input/output instructions include operations on ports and registers. Understanding the instruction set is crucial for effective programming in assembler. This course will discuss the most commonly used instructions and their application in assembler code. Practical examples will show how to use instructions in AVR programming. The instruction set allows full control over the processor and its functions. | The assembler instruction set includes arithmetic, logical, control, and input/output operations. Arithmetic instructions include addition, subtraction, multiplication, and division. Logical instructions include operations such as AND, OR, XOR, and NOT. Control instructions include jumps, loops, and conditions. Input/output instructions include operations on ports and registers. Understanding the instruction set is crucial for effective programming in assembler. This course will discuss the most commonly used instructions and their application in assembly code. Practical examples will show how to use instructions in AVR programming. The instruction set allows full control over the processor and its functions. |
| |
| | =====Basic instructions===== |
| **Basic commands** | |
| |
| <table tab_avr_dt> | <table tab_avr_dt> |
| <table tab_avr_li> | <table tab_avr_li> |
| <caption>Logical Instructions</caption> | <caption>Logical Instructions</caption> |
| ^ Logical Instructions ^^ | ^ Logical Instructions || |
| |and | logical AND| | | and | logical AND | |
| |andi | logical AND with immediate| | | andi | logical AND with immediate | |
| |or | logical OR| | | or | logical OR | |
| |ori | logical OR with immediate| | | ori | logical OR with immediate | |
| |eor | exclusive OR| | | eor | exclusive OR | |
| |com | one's complement| | | com | one's complement | |
| |neg | two's complement| | | neg | two's complement | |
| </table> | </table> |
| |