xref: /openbmc/qemu/tests/tcg/s390x/hello-s390x-asm.S (revision 2df1eb27)
1/*
2 * Hello, World! in assembly.
3 */
4
5.globl _start
6_start:
7
8/* puts("Hello, World!"); */
9lghi %r2,1
10larl %r3,foo
11lgrl %r4,foo_len
12svc 4
13
14/* exit(0); */
15xgr %r2,%r2
16svc 1
17
18.align 2
19foo: .asciz "Hello, World!\n"
20foo_end:
21.align 8
22foo_len: .quad foo_end-foo
23