What does bne 1b mean in arm assembly language

Publisher:花海鱼Latest update time:2016-04-05 Source: eefocusKeywords:arm  bne Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
bne - branch if nemachines: base
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
Keywords:arm  bne Reference address:What does bne 1b mean in arm assembly language

Previous article:S3C2440 Hardware Part 1: GPIO
Next article:NOR and NAND Flash boot analysis

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号