Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
hello-world
/
49cd729baea3480b0861b7afd3633171c371865a
/
.
/
hello-powerpc-linux.s
blob: 56d2aa6e20fe875cc63dc807fbeac05ccc19429b [
file
] [
log
] [
blame
] [
raw
]
.section .rodata
helloworld
:
.string
"Hello world\n"
.text
.global _start
_start
:
li r5
,
12
lis r4
,
helloworld
@
ha
la r4
,
helloworld
@
l
(
r4
)
# Equivalent to addi r4, r4, helloworld@l
li r3
,
1
li r0
,
4
sc
li r3
,
0
li r0
,
1
sc