ASSEMBLY LANGUAGE AVR BRBC Branch if a bit in SREG is cleare
ASSEMBLY LANGUAGE AVR
BRBC (Branch if a bit in SREG is cleared) and BRBS (Branch if a bit in SREG is set) instructions test a bit of the status register (SREG) and appropriately branch to a location. AVR uses these instructions to implement or provides alternate aliases for various branch instructions (e.g., BRGE). What are the more common aliases for each of the following instructions? (Just input the 4 letter instruction name, e.g., BRGE) brbc 4, location brbs 2, location brbc 0, location brbs 7, locationSolution
1: BRBC 4, location BRLT
2. BRBS 2, location BRMI
3. BRBC 0, location BRSH
4. BRBS 7, location BRIE
action of each instructions are as follows:
BRLT-Branch if less than(S flag clear)
BRMI-Branch if minus(N flag set)
BRSH-Branch if same or higher(C flag clear)
BRIE-Branch to <label> if interrupts enabled
