EasyManua.ls Logo

Atmel AVR

Atmel AVR
191 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Conditional Branch Summary
Test Boolean Mnemonic
Complementar
y Boolean Mnemonic Comment
Rd > Rr Z•(N V) = 0 BRLT
(1)
Rd ≤ Rr Z+(N V) =
1
BRGE* Signed
Rd ≥ Rr (N V) = 0 BRGE Rd < Rr (N V) = 1 BRLT Signed
Rd = Rr Z = 1 BREQ Rd ≠ Rr Z = 0 BRNE Signed
Rd ≤ Rr Z+(N V) = 1 BRGE
(1)
Rd > Rr Z•(N V) = 0 BRLT* Signed
Rd < Rr (N V) = 1 BRLT Rd ≥ Rr (N V) = 0 BRGE Signed
Rd > Rr C + Z = 0 BRLO
(1)
Rd ≤ Rr C + Z = 1 BRSH* Unsigned
Rd ≥ Rr C = 0 BRSH/
BRCC
Rd < Rr C = 1 BRLO/BRCS Unsigned
Rd = Rr Z = 1 BREQ Rd ≠ Rr Z = 0 BRNE Unsigned
Rd ≤ Rr C + Z = 1 BRSH
(1)
Rd > Rr C + Z = 0 BRLO* Unsigned
Rd < Rr C = 1 BRLO/BRCS Rd ≥ Rr C = 0 BRSH/BRCC Unsigned
Carry C = 1 BRCS No carry C = 0 BRCC Simple
Negative N = 1 BRMI Positive N = 0 BRPL Simple
Overflow V = 1 BRVS No overflow V = 0 BRVC Simple
Zero Z = 1 BREQ Not zero Z = 0 BRNE Simple
Note:  Interchange Rd and Rr in the operation before the test, i.e., CP Rd,Rr → CP Rr,Rd.
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
21

Table of Contents

Related product manuals