.data hello: .asciz "hello world!\n" ehello: .text .globl _start _start: mov 4, %g1 ! SYS_write mov 1, %o0 ! fd 0 setx hello, %l1, %o1 ! buffer mov ehello - hello, %o2 ! length ta %xcc, 9 ! ST_SYSCALL mov 1, %g1 ! SYS_exit mov %g0, %o0 ! exit val ta %xcc, 9 ! ST_SYSCALL