Sign in
qemu
/
qemu
/
5eff4231ced7b757b9e75c82ecd921b1fe9d5d3c
/
.
/
tests
/
tcg
/
s390x
/
hello-s390x-asm.S
blob: 4dbda12d35dd74f3a99437ca8216dbba046486f5 [
file
] [
log
] [
blame
]
/*
*
Hello
,
World
!
in
assembly.
*/
.globl _start
_start
:
/*
puts
(
"Hello, World!"
);
*/
lghi %r2
,
1
larl %r3
,
foo
lgrl %r4
,
foo_len
svc
4
/*
exit
(
0
);
*/
xgr
%r2,%
r2
svc
1
.align
2
foo
:
.asciz
"Hello, World!\n"
foo_end
:
.align
8
foo_len
:
.quad foo_end
-
foo