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