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:
# My first NetBeans GNU Assembly Language Program!
Message: .asciz "Hello World!"
add $4, %esp
"/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: *** [build/Debug/GNU-MacOSX/main.o] Error 1
make: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 143ms)