Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Explanation needed in arm assembly language programming.

Status
Not open for further replies.

rangerskm

Full Member level 4
Full Member level 4
Joined
Jan 23, 2013
Messages
199
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,663
i found some of the assembly programs in arm difficult to understand,KEIL IDE 4.74 used.please explain the below programs,thanking u in advance..

Code:
   	AREA INI,CODE,READWRITE
	MOV R6,#0
	LDR R3,=0X40000000
	LDR R5,=0X40000050
	LDR R4,=DAT

L4	LDR R2,[R4],#4
	MOV R0,R2
	MOV R1,#0X02

L1	SUB R0,R0,R1
	CMP R0,R1
	BGE L1
	
	CMP R0,#0
	BEQ L2
	ADD R1,R1,#1
	MOV R0,R2
	CMP R1,R2
	BNE L1

	STR R2,[R3],#4

	B L3

L2	STR R2,[R5],#4
L3	ADD R6,R6,#1
	CMP R6,#5
	BNE L4
	

DAT	DD 3,4,5,8,9
	END
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top