Re: Assembly language exit() syscall does not return correct value

2010-03-21 Thread Dave Korn
On 21/03/2010 15:44, Brandon Chase wrote: > Thanks a lot! So I need to do all c-style syscalls for Cygwin? Yep, absolutely, should all be pretty much as simple as that. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com

Re: Assembly language exit() syscall does not return correct value

2010-03-21 Thread Brandon Chase
>On 16/03/2010 17:08, Stephan Mueller wrote: > Brandon Chase wrote: > " DaveK wrote: > " " Brandon, Cygwin isn't compatible with Linux at the assembler-code > level, > " So I cannot compile assembly language with Cygwin? Do I need a linux shell? > > No, that's not what anyone said. You c

Re: Assembly language exit() syscall does not return correct value

2010-03-17 Thread Dave Korn
On 16/03/2010 17:08, Stephan Mueller wrote: > Brandon Chase wrote: > " DaveK wrote: > " " Brandon, Cygwin isn't compatible with Linux at the assembler-code > level, > " So I cannot compile assembly language with Cygwin? Do I need a linux shell? > > No, that's not what anyone said. You can u

RE: Assembly language exit() syscall does not return correct value

2010-03-16 Thread Stephan Mueller
Brandon Chase wrote: " DaveK wrote: " " On 15/03/2010 16:56, Christopher Faylor wrote: " " > # %ebx is the status code for the exit system call " " > # and it already has the maximum number " " > movl $1, %eax #1 is the exit() syscall " " > " " > If, in theory, I got this right

Re: Assembly language exit() syscall does not return correct value

2010-03-16 Thread Brandon Chase
On 15/03/2010 16:56, Christopher Faylor wrote: > On Mon, Mar 15, 2010 at 04:23:39PM +, Brandon Chase wrote: >> The following program is supposed to return a value of 222 when echo $? >> run, but I get 127 every time, no matter what I change. I have looked >> around but cannot seem to find ou

Re: Assembly language exit() syscall does not return correct value

2010-03-15 Thread Dave Korn
On 15/03/2010 16:56, Christopher Faylor wrote: > On Mon, Mar 15, 2010 at 04:23:39PM +, Brandon Chase wrote: >> The following program is supposed to return a value of 222 when echo $? >> run, but I get 127 every time, no matter what I change. I have looked >> around but cannot seem to find out

Re: Assembly language exit() syscall does not return correct value

2010-03-15 Thread Christopher Faylor
On Mon, Mar 15, 2010 at 04:23:39PM +, Brandon Chase wrote: > >The following program is supposed to return a value of 222 when echo $? >run, but I get 127 every time, no matter what I change. I have looked >around but cannot seem to find out if this is an error or a >cygwin-specific value. >

Assembly language exit() syscall does not return correct value

2010-03-15 Thread Brandon Chase
The following program is supposed to return a value of 222 when echo $? run, but I get 127 every time, no matter what I change. I have looked around but cannot seem to find out if this is an error or a cygwin-specific value. -- #PURPOSE: