Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-26-2013, 11:20 PM #1
- Join Date
- Aug 2013
- Thanked 0 Times in 0 Posts
Newbie: Need help with netbeans, assembly language
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! .text Message: .asciz "Hello World!" _main: push $Message call _puts add $4, %esp ret .global _main
"/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)