Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .ARRAY:
- .word 1
- .word 2
- .word 3
- .word 4
- .word 5
- main:
- push {fp, lr}
- add fp, sp, #4
- sub sp, sp, #32
- ldr r3, .L2
- sub ip, fp, #32
- mov lr, r3
- ldmia lr!, {r0, r1, r2, r3}
- stmia ip!, {r0, r1, r2, r3}
- ldr r3, [lr]
- str r3, [ip]
- mov r3, #0
- str r3, [fp, #-8]
- mov r3, #0
- str r3, [fp, #-12]
- b .L1
- .L0:
- ldr r3, [fp, #-8]
- add r3, r3, #1
- str r3, [fp, #-8]
- ldr r3, [fp, #-12]
- add r3, r3, #1
- str r3, [fp, #-12]
- .L1:
- ldr r3, [fp, #-12]
- cmp r3, #4
- ble .L0
- ldr r3, [fp, #-8]
- cmp r3, #80
- movne r3, #1
- moveq r3, #0
- and r3, r3, #255
- mov r0, r3
- sub sp, fp, #4
- pop {fp, pc}
- .L2:
- .word .ARRAY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement