Zeile 1: | Zeile 1: | ||
{{Baustelle|SprinterSB}} | {{Baustelle|SprinterSB}} | ||
+ | <center> | ||
+ | {| {{Blauetabelle}} | ||
+ | |+ '''Tabelle: Constraints und ihre Bedeutung''' | ||
+ | |- {{Hintergrund1}} | ||
+ | ! Contraint || Erklärung || Wertebereich | ||
+ | |- | ||
+ | |<tt>a</tt>||einfache obere Register||<tt>r16</tt>...<tt>r23</tt> | ||
+ | |- | ||
+ | |<tt>b</tt>||Pointer-Register ||<tt>y</tt>, <tt>z</tt> | ||
+ | |- | ||
+ | |<tt>d</tt>||obere Register ||<tt>r16</tt>...<tt>r31</tt> | ||
+ | |- | ||
+ | |<tt>e</tt>||Pointer-Register ||<tt>x</tt>, <tt>y</tt>, <tt>z</tt> | ||
+ | |- | ||
+ | |<tt>G</tt>||Floatingpoint-Konstante ||<tt>0.0</tt> | ||
+ | |- | ||
+ | |<tt>i</tt>||Konstante || | ||
+ | |- | ||
+ | |<tt>I</tt>||positive 6-Bit-Konstante ||0...63 | ||
+ | |- | ||
+ | |<tt>J</tt>||negative 6-Bit Konstante ||<tt>-</tt>63...0 | ||
+ | |- | ||
+ | |<tt>K</tt>||Konstante ||2 | ||
+ | |- | ||
+ | |<tt>L</tt>||Konstante ||0 | ||
+ | |- | ||
+ | |<tt>l</tt>||untere Register ||<tt>r0</tt>...<tt>r15</tt> | ||
+ | |- | ||
+ | |<tt>M</tt>||8-Bit Konstante ||0...255 | ||
+ | |- | ||
+ | |<tt>N</tt>||Konstante ||<tt>-</tt>1 | ||
+ | |- | ||
+ | |<tt>O</tt>||Konstante ||8, 16, 24 | ||
+ | |- | ||
+ | |<tt>P</tt>||Konstante ||1 | ||
+ | |- | ||
+ | |<tt>q</tt>||Stack-Pointer ||<tt>SPH:SPL</tt> | ||
+ | |- | ||
+ | |<tt>r</tt>||ein Register ||<tt>r0</tt>...<tt>r31</tt> | ||
+ | |- | ||
+ | |<tt>t</tt>||Scratch-Register ||<tt>r0</tt> | ||
+ | |- | ||
+ | |<tt>w</tt>||Obere Register-Paare ||<tt>r24</tt>, <tt>r26</tt>, <tt>r28</tt>, <tt>r30</tt> | ||
+ | |- | ||
+ | |<tt>x</tt>||Pointer-Register X ||<tt>x</tt> (<tt>r27:r26</tt>) | ||
+ | |- | ||
+ | |<tt>y</tt>||Pointer-Register Y ||<tt>y</tt> (<tt>r29:r28</tt>) | ||
+ | |- | ||
+ | |<tt>z</tt>||Pointer-Register Z ||<tt>z</tt> (<tt>r31:r30</tt>) | ||
+ | |} | ||
+ | </center> | ||
+ | |||
+ | <center> | ||
{| {{Blauetabelle}} | {| {{Blauetabelle}} | ||
|+'''Tabelle: Übersicht AVR-Instruktionen und passende Constraints''' | |+'''Tabelle: Übersicht AVR-Instruktionen und passende Constraints''' | ||
Zeile 82: | Zeile 135: | ||
|colspan="9"| | |colspan="9"| | ||
|} | |} | ||
+ | </center> |
Version vom 28. Februar 2006, 16:29 Uhr
An diesem Artikel arbeitet gerade Mitglied SprinterSB.
Am besten momentan noch keine gravierenden Ergänzungen / Änderungen vornehmen. Dieser Hinweis verschwindet wenn der Autor soweit ist. Sollte dieser Hinweis länger als drei Tage auf einer Seite sein, bitte beim Autor SprinterSB per PM / Mail oder Forum nachfragen ob er vergessen wurde. |
Contraint | Erklärung | Wertebereich |
---|---|---|
a | einfache obere Register | r16...r23 |
b | Pointer-Register | y, z |
d | obere Register | r16...r31 |
e | Pointer-Register | x, y, z |
G | Floatingpoint-Konstante | 0.0 |
i | Konstante | |
I | positive 6-Bit-Konstante | 0...63 |
J | negative 6-Bit Konstante | -63...0 |
K | Konstante | 2 |
L | Konstante | 0 |
l | untere Register | r0...r15 |
M | 8-Bit Konstante | 0...255 |
N | Konstante | -1 |
O | Konstante | 8, 16, 24 |
P | Konstante | 1 |
q | Stack-Pointer | SPH:SPL |
r | ein Register | r0...r31 |
t | Scratch-Register | r0 |
w | Obere Register-Paare | r24, r26, r28, r30 |
x | Pointer-Register X | x (r27:r26) |
y | Pointer-Register Y | y (r29:r28) |
z | Pointer-Register Z | z (r31:r30) |
Mnemonic | Constraint | Mnemonic | Constraint | Mnemonic | Constraint | Mnemonic | Constraint | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
adc | r,r | add | r,r | adiw | w,I | and | r,r | ||||
andi | d,M | asr | r | bclr | I | bld | r,I | ||||
brbc | I,label | brbs | I,label | bset | I | bst | r,I | ||||
cbi | I,I | cbr | d,I | com | r | cp | r,r | ||||
cpc | r,r | cpi | d,M | cpse | r,r | dec | r | ||||
elpm | t,z | eor | r,r | in | r,I | inc | r | ||||
ld | r,e | ldd | r,b | ldi | d,M | lds | r,label | ||||
lpm | t,z | lsl | r | lsr | r | mov | r,r | ||||
movw | r,r | mul | r,r | neg | r | or | r,r | ||||
ori | d,M | out | I,r | pop | r | push | r | ||||
rol | r | ror | r | sbc | r,r | sbci | d,M | ||||
sbi | I,I | sbic | I,I | sbiw | w,I | sbr | d,M | ||||
sbrc | r,I | sbrs | r,I | ser | d | st | e,r | ||||
std | b,r | sts | label,r | sub | r,r | subi | d,M | ||||
swap | r |