Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global _start
- .align 4
- .data
- msg .ascii "hello, world!\n"
- len . - msg
- ; stdin 0
- ; stdout 1
- ; stderr 2
- .text
- _start:
- mov x0, #1 ; stdout
- ldr x1, =msg
- ldr x2, =len
- mov w8, #64 ; syscall 64 (write)
- svc #0
- mov x0, #0 : status 0 (OK)
- mov w8, #93 syscall 93 (exit)
- svc #0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement