# # File: hello1_mod.s # Author: William T Krieger, Oct 2003 # # My modification of the hello1 test case. # It's a simple "Hello world" demonstration. .text LC0: .ascii "Hello world\12\0" .align 4 # # Function: _main() # void _main() # Demonstrates good, old reliable "Hello world". Shows how to call printf(). .globl _main _main: pushl %ebp # enter _main() movl %esp, %ebp pushl $LC0 # call printf( fmt) call _printf addl $4,%esp movl %ebp, %esp # exit _main() pop %ebp ret