Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:multiasm:piot:chapter_4_7 [2026/06/22 22:41] – [Basic instructions] pczekalskien:multiasm:piot:chapter_4_7 [2026/06/22 22:50] (current) – [Basic instructions] pczekalski
Line 7: Line 7:
 The following data transfer instructions are available: The following data transfer instructions are available:
  
-  * **ldi** load immediate +  * **ldi** load immediate, 
-  * **mov** copy register +  * **mov** copy register, 
-  * **movw** copy register pair+  * **movw** copy register pair.
  
 The following logical instructions are available: The following logical instructions are available:
  
-  * **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.
  
 The following arithmetic instructions are available: The following arithmetic instructions are available:
  
-  * **add** add without carry +  * **add** add without carry, 
-  * **adc** add with carry +  * **adc** add with carry, 
-  * **adiw** add immediate to word +  * **adiw** add immediate to word, 
-  * **sub** subtract without carry +  * **sub** subtract without carry, 
-  * **subi** subtract immediate +  * **subi** subtract immediate, 
-  * **sbc** subtract with carry +  * **sbc** subtract with carry, 
-  * **sbci** subtract immediate with carry +  * **sbci** subtract immediate with carry, 
-  * **sbiw** subtract immediate from word +  * **sbiw** subtract immediate from word, 
-  * **inc** increment +  * **inc** increment, 
-  * **dec** decrement +  * **dec** decrement, 
-  * **mul** multiply unsigned//(1)// +  * **mul** multiply unsigned//(1)//, 
-  * **muls** multiply signed//(1)// +  * **muls** multiply signed//(1)//, 
-  * **mulsu** multiply signed with unsigned//(1)// +  * **mulsu** multiply signed with unsigned//(1)//, 
-  * **fmul** fractional multiply unsigned//(1)// +  * **fmul** fractional multiply unsigned//(1)//, 
-  * **fmuls** fractional multiply signed//(1)// +  * **fmuls** fractional multiply signed//(1)//, 
-  * **fmulsu** fractional multiply signed with unsigned//(1)//+  * **fmulsu** fractional multiply signed with unsigned//(1)//.
  
 //(1) Not all processors support commands// //(1) Not all processors support commands//
Line 44: Line 44:
 The following bit shift instructions are available: The following bit shift instructions are available:
  
-  * **lsl** logical shift left +  * **lsl** logical shift left, 
-  * **lsr** logical shift right +  * **lsr** logical shift right, 
-  * **rol** rotate left through carry +  * **rol** rotate left through carry, 
-  * **ror** rotate right through carry +  * **ror** rotate right through carry, 
-  * **asr** arithmetic shift right+  * **asr** arithmetic shift right.
  
 The following bit manipulation instructions are available: The following bit manipulation instructions are available:
  
-  * **sbr** set bit(s) in register +  * **sbr** set bit(s) in register, 
-  * **cbr** clear bit(s) in register +  * **cbr** clear bit(s) in register, 
-  * **ser** set register +  * **ser** set register, 
-  * **clr** clear register +  * **clr** clear register, 
-  * **swap** swap nibbles+  * **swap** swap nibbles.
en/multiasm/piot/chapter_4_7.txt · Last modified: by pczekalski
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0