Re: Strange behaviour in assembly language program

2004-03-03 Thread jan . muenther
> > pusheax ; Or any other dword Heh... that of course will work too ;) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Strange behaviour in assembly language program

2004-03-03 Thread Daniela
On Wednesday 03 March 2004 14:02, Sergey 'DoubleF' Zaharchenko wrote: > On Wed, 3 Mar 2004 06:23:28 + > > Daniela <[EMAIL PROTECTED]> probably wrote: > > In this situation, I can only use a single-byte instruction to push 4 > > bytes, everything else costs me too much space. The only one I know

Re: Strange behaviour in assembly language program

2004-03-03 Thread Sergey 'DoubleF' Zaharchenko
On Wed, 3 Mar 2004 06:23:28 + Daniela <[EMAIL PROTECTED]> probably wrote: > In this situation, I can only use a single-byte instruction to push 4 bytes, > everything else costs me too much space. The only one I know of, is PUSHA, > but it pushes too many bytes. Quoting from dev-handbook: >

Re: Strange behaviour in assembly language program

2004-03-02 Thread Daniela
On Tuesday 02 March 2004 21:19, [EMAIL PROTECTED] wrote: > Howdy, > > > Here it is: > > > > .text > > .global _start > > _start: > > pushl $0 > > movl$1, %eax > > int $0x80 > > > > I looked everywhere (Developer's handbook, Google, ...) to find the > > solution, but all resour

Re: Strange behaviour in assembly language program

2004-03-02 Thread jan . muenther
Howdy, > Here it is: > > .text > .global _start > _start: > pushl $0 > movl$1, %eax > int $0x80 > > I looked everywhere (Developer's handbook, Google, ...) to find the solution, > but all resources I consulted tell me this is the right way to do it. > This program, h