Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- tam: .word 8
- datos: .word 2, 4, 6, 8, -2, -4, -6, -7
- res: .word 0
- .text
- main:
- ldr r0, =tam
- ldr r0, [r0]
- ldr r1, =datos
- ldr r2, [r1]
- bucle:
- ldr r3, [r1], #4
- cmp r3, r2
- movGE r2, r3
- subS r0, r0, #1
- bNE bucle
- ldr r1, =res
- str r2, [r1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement