GAS AT&T linkage issue

2012-07-04 Thread Colin Barnabas
put, %edi movl $ebx, 28(%edi) movl $edx, 32(%edi) movl $ecx, 36(%edi) movl $4, %eax movl $1, %ebx movl $output, %ecx movl $42, %edx int $0x80 movl $1, %eax movl $0, %ebx

NASM in FreeBSD

2011-09-30 Thread Colin Barnabas
Is there a particular reason that nasm comes standard with FreeBSD and not fasm? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.o

Re: Hello World assembly language

2011-09-29 Thread Colin Barnabas
Thank you to all who responded. I changed the 13 to 14 so as to include the new line and that sorted everything out. Oddly, however, while I was using bash, the shell still returned on the same line as the output even after the fix. It was not until after I switched shells that things worked out pr

Hello World assembly language

2011-09-28 Thread Colin Barnabas
I found a hello world program written in assembly language which runs on my amd64 8.2 stable box. However, I can not seem to get it to print a new line. Any suggestions on how to print a line feed in assembly? Here is the code- section .data message: db 'hello, world!', 0x0a section .text