!--------------------------------------
! hellop.S
! Fundamentals
! Calling Functions
!--------------------------------------

.section ".rodata"

pcGreeting:
	.asciz "Hello world.\n"

!--------------------------------------

.section ".data"

!--------------------------------------

.section ".bss"

!--------------------------------------

.section ".text"

	.align 4
	.global main

main:

	save	%sp, -96, %sp

	! printf("Hello world.\n"); 
	set	pcGreeting, %o0
	call	printf
	nop

	! return 0; 
	mov	0, %i0
	ret
	restore

