bne - branch if nemachines: base
Keywords:arm bne
Reference address:What does bne 1b mean in arm assembly language
syntax: bne $soffset8
format: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0f-op4f-condf-soffset80xd0x1soffset8
semantics:(if (not zbit) (set pc soffset8)) That is, if zbit is not equal to 0, then jump to offset8 to execute.
The 1b in bne means jump backward to local label 1 to execute, and b means backward.
The corresponding bne 1f is also called bne 1f (jump forward to local label 1 to execute).
1: ;A
cmp r0, #0
beq 1f ; if r0==0, then jump forward to B and execute
bne 1b ; otherwise jump backward to A to execute
1: ;B
1b, the b and f in 1f mean backward and forward, and 1 means local label 1
format: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0f-op4f-condf-soffset80xd0x1soffset8
semantics:(if (not zbit) (set pc soffset8)) That is, if zbit is not equal to 0, then jump to offset8 to execute.
The 1b in bne means jump backward to local label 1 to execute, and b means backward.
The corresponding bne 1f is also called bne 1f (jump forward to local label 1 to execute).
1: ;A
cmp r0, #0
beq 1f ; if r0==0, then jump forward to B and execute
bne 1b ; otherwise jump backward to A to execute
1: ;B
1b, the b and f in 1f mean backward and forward, and 1 means local label 1
Previous article:S3C2440 Hardware Part 1: GPIO
Next article:NOR and NAND Flash boot analysis
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- How Lucid is overtaking Tesla with smaller motors
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
Guess you like
- STM32F10x stepper motor encoder position control CANWeb source program
- MSP430F249_TimerA timer
- Synthesizable Verilog Syntax (Cambridge University, photocopy)
- [RVB2601 Creative Application Development] Short recording, playback and printing of recording data
- When the carrier data reaches the receiving end, how does the receiving end identify this information?
- SparkRoad Review (7) - FPGA Serial Port Test
- Disable AD auto-start JLink
- Seeking guidance - stc microcontroller remote upgrade program
- Problems with creating sheet symbols for multi-page schematics
- Zigbee Z-Stack 3.0.1 Modify channels using broadcasting