Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .global getVLQ
- getVLQ:
- push {r4, r5, fp}
- add fp, sp, #8
- mov r5, #0
- mov r3, r5
- and r4, r3, #128
- cmp r4, #0
- beq L2
- and r4, r4, #127
- L1:
- lsl r3, r4, #7
- mov r2, r5
- add r3, r3, r2
- and r4, r3, #127
- lsl r3, r5, #24
- asr r3, r3, #24
- cmp r3, #0
- blt L1
- L2:
- mov r3, r4
- mov r0, r3
- sub sp, fp, #8
- pop {r4, r5, fp}
- bx lr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement