/*
  Filename   : Hello.s
  Author     : Gary M. Zoppetti
  Course     : CSCI 370-01
  Assignment : N/A
  Description: Print greeting twice
*/

/**********************************************************/
// Includes

	.include "Defines.h"

/**********************************************************/
// Data

	.data
hello:
	.string "Hello World!!\n"

/**********************************************************/
// Code

	.text
	.align	4	
	.globl	main
main:
	
	enter	$0, $0
	
	// Print string using system call
	movl	$SYS_write, %eax
	movl	$STDOUT, %ebx
	movl	$hello, %ecx
	# strlen (hello) == 14
	movl	$14, %edx
	int	$0x80

	// Print string using printf function
	pushl	$hello
	call	printf
	
	leave
	ret

/**********************************************************/
