Skip to content

Instantly share code, notes, and snippets.

@zliuva
Created July 21, 2011 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zliuva/1097482 to your computer and use it in GitHub Desktop.
Save zliuva/1097482 to your computer and use it in GitHub Desktop.
A simple Hello World for ARM on iOS
.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