Problems with freebsd assembly
djackson452 at gmail.com
Wed Nov 11 20:23:27 UTC 2009
I am having great difficulty running a very simple assembler program on
FreeBSD on x86 in my efforts to learn some assembly programming on
FreeBSD. I have tried to compile the following with nasm, however i get
nothing in response when I attempt to run this program:
hello db 'Hello, World!', 0xa
hbytes equ $ - hello
push dword hbytes
push dword hello
push dword 1
push dword 0
nasm -f elf -o hello1s.o hello1.s
ld -s -o hello1s hello1s.o
./hello1s prints nothing.
What is wrong here? It should print "hello world".
Thanks in advance for your help, it is greatly appreciated.
More information about the freebsd-questions