Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .global start
- start:
- MOV R0, #3
- MOV R1, #6
- LDRD R2, =array
- check:
- CMP R1, #1
- BNE loop
- B exit
- loop:
- LDRD R5, [R2], #4
- CMP R0, R5
- SUBEQ R0, R0, #1
- SUB R1, R1, #1
- B check
- exit:
- MOV R7, #1
- SWI 0
- .data
- array: .dword 1, 2, 3, 4, 5, 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement