Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 362 Bytes

hello_arm.md

File metadata and controls

28 lines (20 loc) · 362 Bytes

hello world arm

http://kerseykyle.com/articles/ARM-assembly-hello-world

.text            
.global _start
_start:
    mov r0, #1
    ldr r1, =message
    ldr r2, =len
    mov r7, #4
    swi 0

    mov r7, #1
    swi 0

.data
message:
    .asciz "hello world\n"
len = .-message                  
            
as hello.s -o hello.o
ld hello.o -o hello