Re: Problems with FreeBSD assembly

2009-11-12 Thread perryh
Mihai Don??u mihai.do...@gmail.com wrote: I don't think the kernel is the one that initializes the 0, 1 and 2 file descriptors (stdin, stdout and stderr). Correct so far. I think you have to open them yourself ... No, the shell does it. That's how it is able to set up pipes and redirection.

Re: Problems with FreeBSD assembly

2009-11-12 Thread David Jackson
Charlie Kester wrote: On Wed 11 Nov 2009 at 17:32:41 PST Charlie Kester wrote: One more thing: Notice that the system call number (or any other dword) should also be pushed onto the stack before the int 80h. The reason for this is given at the top of the page: although the kernel is

Re: Problems with FreeBSD assembly

2009-11-12 Thread Giorgos Keramidas
On Wed, 11 Nov 2009 14:43:21 -0500, David Jackson norsta...@gmail.com wrote: 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

Problems with FreeBSD assembly

2009-11-11 Thread David Jackson
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: section .data

Problems with freebsd assembly

2009-11-11 Thread David Jackson
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: section .data

Re: Problems with FreeBSD assembly

2009-11-11 Thread Mihai Donțu
On Wednesday 11 November 2009 21:43:21 David Jackson wrote: 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

Re: Problems with FreeBSD assembly

2009-11-11 Thread Charlie Kester
On Wed 11 Nov 2009 at 11:43:21 PST David Jackson wrote: 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

Re: Problems with FreeBSD assembly

2009-11-11 Thread Charlie Kester
On Wed 11 Nov 2009 at 17:32:41 PST Charlie Kester wrote: One more thing: Notice that the system call number (or any other dword) should also be pushed onto the stack before the int 80h. The reason for this is given at the top of the page: although the kernel is accessed using int 80h, it