initial commit
This commit is contained in:
16
armv6/tutorial/helloworld.s
Normal file
16
armv6/tutorial/helloworld.s
Normal file
@@ -0,0 +1,16 @@
|
||||
.global _start
|
||||
|
||||
_start:
|
||||
MOV R7, #4 @ system call to say we want to output
|
||||
MOV R0, #1 @ use the window as output device
|
||||
MOV R2, #12 @ length of our output message
|
||||
LDR R1, =message
|
||||
SWI 0
|
||||
|
||||
end:
|
||||
MOV R7, #1
|
||||
SWI 0
|
||||
|
||||
.data
|
||||
message:
|
||||
.ascii "Hello World\n"
|
||||
Reference in New Issue
Block a user