Created
July 21, 2011 15:48
-
-
Save zliuva/1097482 to your computer and use it in GitHub Desktop.
A simple Hello World for ARM on iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.globl start | |
start: | |
mov r2, #14 | |
adr r1, hello_str | |
mov r0, #1 | |
mov r12, #4 | |
swi 0x80 | |
mov r0, #0 | |
mov r12, #1 | |
swi 0x80 | |
hello_str: | |
.ascii "Hello, World!\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment