1be4a4cb4SIlya Leoshkevich/* 2be4a4cb4SIlya Leoshkevich * Hello, World! in assembly. 3be4a4cb4SIlya Leoshkevich */ 4be4a4cb4SIlya Leoshkevich 5be4a4cb4SIlya Leoshkevich.globl _start 6be4a4cb4SIlya Leoshkevich_start: 7be4a4cb4SIlya Leoshkevich 8be4a4cb4SIlya Leoshkevich/* puts("Hello, World!"); */ 9be4a4cb4SIlya Leoshkevichlghi %r2,1 10be4a4cb4SIlya Leoshkevichlarl %r3,foo 11*cb2d7e63SIlya Leoshkevichlgrl %r4,foo_len 12be4a4cb4SIlya Leoshkevichsvc 4 13be4a4cb4SIlya Leoshkevich 14be4a4cb4SIlya Leoshkevich/* exit(0); */ 15be4a4cb4SIlya Leoshkevichxgr %r2,%r2 16be4a4cb4SIlya Leoshkevichsvc 1 17be4a4cb4SIlya Leoshkevich 18be4a4cb4SIlya Leoshkevich.align 2 19be4a4cb4SIlya Leoshkevichfoo: .asciz "Hello, World!\n" 20be4a4cb4SIlya Leoshkevichfoo_end: 21*cb2d7e63SIlya Leoshkevich.align 8 22*cb2d7e63SIlya Leoshkevichfoo_len: .quad foo_end-foo 23