I am new to assembly language, just started class. I am using a mac with netbeans. I am trying to just get simple programs to run, but to no avail. Can someone please send the steps to take to set up a simple asm program in netbeans? Such as which type of project do I set up. I have tried setting up a C/C++ application project, deleted the source file, added my main asm file and it gave me the following error. Could it be a problem with my makefile? Please help if you can!

Here's the asm file:
Code:
# My first NetBeans GNU Assembly Language Program!

            .text
Message:    .asciz "Hello World!"
_main:
            push $Message
            call _puts
            add $4, %esp
            ret
            .global _main
Error:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/test
mkdir -p build/Debug/GNU-MacOSX
as -g -o build/Debug/GNU-MacOSX/main.o main.asm
main.asm:10:Unknown pseudo-op: .global
main.asm:10:Rest of line ignored. 1st junk character valued 95 (_).
make[2]: *** [build/Debug/GNU-MacOSX/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2


BUILD FAILED (exit value 2, total time: 143ms)

Thanks,
Jeanine