Path: Home => AVR-overview => programming => tables = > Instructions by popularity    (Diese Seite in Deutsch: Flag DE) Logo

Programming in AVR assembler language

Learning instructions by popularity

This instruction table is sorted by popularity. If you plan to learn all those in a 7-days-schedule, use column 1 as timetable, if you plan to learn all these in a 2-weeks-schedule, use column 2.

The following table shows the percentage of instructions used on this webpage that you will learn in those day schedules. Popularity data was taken from 192 source code files as of Dec., 2022.

DayInstruction percentage
7 days2 weeks
159.4%42.0%
278.7%59.4%
390.2%70.3%
496.2%78.7%
598.8%85.0%
699.9%90.2%
7100.0%93.7%
896.2%
997.9%
1098.8%
1199.52%
1299.86%
1399.96%
14100.00%


That means: with the 7-day-schedule you are familiar with 90% of the instruction within three days, with the 2-weeks-schedule you'll need six days for that.

Note that 30 instructions were never used in my source code files and do not appear here.

7 days2 weeksInstructionPopul.Usage and linkAdditional hints
11ldi17.97%LDI rh,c255
out7.52%OUT p1,r1
rjmp6.22%RJMP c4096
rcall5.54%RCALL c4096Requires stack operation
reti4.76%RETIRequires stack operation and I flag
2mov4.28%MOV r1,r2
clr3.53%CLR r1
brne3.05%BRNE c127
cpi2.29%CPI rh,c255
ret2.23%RETRequires stack operation
adc1.98%ADC r1,r2
23nop1.95%NOP
rol1.91%ROL r1
sbi1.90%SBI pl,b7
st1.88%ST (-)rp(+),r1Pointer operation
ror1.74%ROR r1
add1.53%ADD r1,r2
4brcs1.50%BRCS c127
cbi1.49%SBI pl,b7
inc1.49%INC r1
in1.46%IN r1,p1
breq1.29%BREQ c127
brcc1.16%BRCC c127
35lpm1.16%LPMPointer operation
dec1.10%DEC r1
lsr1.08%LSR r1
sbc1.05%SUB r1,r2
ld1.01%LD r1,(-)rp(+)Pointer operation
sts0.94%STS c65535,r1
6tst0.91%TST r1
lsl0.89%LSL r1
sbr0.87%SBR rh,c255
sbrc0.86%SBRC rh,b7
push0.85%PUSH r1Requires stack operation
andi0.82%ANDI rh,c255
47lds0.76%LDS r1,c65535
pop0.76%POP r1Requires stack operation
cp0.70%CP r1,r2
cbr0.67%CBR rh,255
subi0.63%SUBI rh,c255
8sub0.60%SUB r1,r2
or0.39%OR r1,r2
sbiw0.39%SBIW rd,k63
sbrs0.37%SBRS r1,b7
cpc0.36%CPC r1,r2
sei0.36%SEIRequires stack operation and I flag
59adiw0.36%ADIW rd,k63
sbic0.32%SBIC pl,b7
sleep0.29%SLEEP
sbis0.26%SBIS pl,b7
clt0.23%CLT
swap0.22%SWAP r1
10set0.20%SET
ori0.18%ORI rh,c255
mul0.16%MUL r1,r2
clc0.15%CLC
sec0.15%SEC
eor0.13%EOR r1,r2
611com0.13%COM r1
ldd0.12%LDD r1,ry+k63Pointer operation
and0.12%AND r1,r2
std0.12%STD ry+k63,r1Pointer operation
brtc0.10%BRTC c127
brts0.10%BRTS c127
12call0.081%-Large devices
cli0.071%CLI
jmp0.071%-Large devices
ijmp0.041%IJMPPointer operation
neg0.041%NEG r1
ser0.034%SER rh
713brhs0.024%BRHS c127
sbci0.024%SBCI rh,c255
brpl0.017%BRPL c127
bld0.010%BLD r1,b7
brlt0.010%BRLT c127
brmi0.010%BRMI c127
14cpse0.010%CPSE r1,r2
bst0.007%BST r1,b7
clz0.007%CLZ
sez0.007%SEZ
wdr0.007%WDR




To the top of that page



©2022 by http://www.avr-asm-tutorial.net