.title "hello.ic" # global declarations .global _ic_main # data section .data .align 4 .int 13 str1: .string "Hello world.\n" .align 4 # text (code) section .text #---------------------------------------------------- .align 4 _ic_main: push %ebp # prologue mov %esp,%ebp # prologue push $str1 # pre-call code call _print add $4, %esp # post-call code mov $0, %eax # return 0 epilogue_ic_main: mov %ebp,%esp # epilogue pop %ebp # epilogue ret # epilogue