11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVRAssembly InstructionsThis chapter lists all <strong>the</strong> supported AVR instructions. Most of <strong>the</strong>m use <strong>the</strong> samesyntax as <strong>the</strong> Atmel assembler. Please refer to Atmel documentation <strong>for</strong> completein<strong>for</strong>mation on <strong>the</strong> instruction set. Newer AVRs implement some new instructions thatare not available in <strong>the</strong> original AVR design. Roughly speaking, <strong>the</strong>re are threegenerations of AVR instructions: Classic AVRs (e.g., 8515), original MegaAVRs (e.g.,Mega103), <strong>and</strong> <strong>the</strong> newest Enhanced MegaAVRs (e.g., Mega48). Some instructions,such as CALL <strong>and</strong> JMP, are only available <strong>for</strong> devices with larger than 8K bytes ofcode memory. For <strong>the</strong> high <strong>and</strong> low byte operators, see Operators..Arithmetic <strong>and</strong> Logical InstructionsADD Rd,Rr ADC Rd,Rr ADIW Rdl,K aSUB Rd,Rr SUBI Rd,K b SBC Rd,RrSBCI Rd,K SBIW Rdl,K AND Rd,RrANDI Rd,K OR Rd,Rr ORI Rd,KEOR Rd,Rr COM Rd NEG RdSBR Rd,K CBR Rd,K INC RdDEC Rd TST Rd CLR RdSER RdMULSU Rd,Rr[MegaAVR]FMULSU Rd,Rr[MegaAVR]MUL Rd,Rr[MegaAVR]FMUL Rd,Rr[MegaAVR]Branch InstructionsMULS Rd,Rr[MegaAVR]FMULS Rd,Rr[MegaAVR]RJMP label IJMP JMP labelRCALL label ICALL CALL labelRET RETI CPSE Rd,Rr188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!