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