rangerskm
Full Member level 4
- Joined
- Jan 23, 2013
- Messages
- 199
- Helped
- 0
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,296
- 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