Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .global getipstr
- getipstr:
- MOV R12, #10
- L1:
- MOV R2, #0
- L2:
- LDRB R3, [R0], #1
- SUBS R3, R3, #'0'
- MLAHS R2, R12, R2, R3
- BHS L2
- ADD R1, R2, R1, LSL #8
- CMP R3, #-'0'
- BNE L1
- MOV R0, R1
- BX LR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement