Repo init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
all: hello
|
||||
|
||||
hello: hello.o
|
||||
ld hello.o -o hello
|
||||
|
||||
hello.o: hello.s
|
||||
as hello.s -o hello.o
|
||||
|
||||
clean:
|
||||
rm hello.o hello
|
||||
@@ -0,0 +1,21 @@
|
||||
SYSEXIT = 1
|
||||
SYSWRITE = 4
|
||||
STDOUT = 1
|
||||
|
||||
.global _start
|
||||
|
||||
.data
|
||||
str: .ascii "Hello world!\n"
|
||||
str_len = . - str
|
||||
|
||||
.text
|
||||
_start:
|
||||
mov r7, #SYSWRITE
|
||||
mov r0, #STDOUT
|
||||
ldr r1, =str
|
||||
mov r2, #str_len
|
||||
swi 0x0
|
||||
|
||||
mov r7, #SYSEXIT
|
||||
mov r0, #0
|
||||
swi 0x0
|
||||
Reference in New Issue
Block a user