Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Hello-world-Text/SPARC-Assembly/hello-world-text.sparc
Normal file
16
Task/Hello-world-Text/SPARC-Assembly/hello-world-text.sparc
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.section ".text"
|
||||
.global _start
|
||||
_start:
|
||||
mov 4,%g1 ! 4 is SYS_write
|
||||
mov 1,%o0 ! 1 is stdout
|
||||
set .msg,%o1 ! pointer to buffer
|
||||
mov (.msgend-.msg),%o2 ! length
|
||||
ta 8
|
||||
|
||||
mov 1,%g1 ! 1 is SYS_exit
|
||||
clr %o0 ! return status is 0
|
||||
ta 8
|
||||
|
||||
.msg:
|
||||
.ascii "Hello world!\n"
|
||||
.msgend:
|
||||
Loading…
Add table
Add a link
Reference in a new issue