Repo init

This commit is contained in:
Jan Potocki
2020-06-22 17:31:00 +02:00
commit 5f9799c55c
11 changed files with 269 additions and 0 deletions
+10
View File
@@ -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
+21
View File
@@ -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