Professional Documents
Culture Documents
__Vectors
DCD 0x10001000
DCD Reset_Handler
ALIGN
AREA mycode,CODE,READONLY
ENTRY
EXPORT Reset_Handler
Reset_Handler
LDR R0,=ARR
LDR R1,=VAL
LDR R2,[R1]
LDR R3,=FLAG
MOV R10,#0X0A
UP
LDR R4,[R0],#4
CMP R2,R4
BEQ FOUND
SUB R10,#1
TEQ R10,#0
BNE UP
B STOP
FOUND
MOV R5,#1
STR R5,[R3]
STOP
B STOP