From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: GAS craziness (not assembling legal instructions) Date: Mon, 18 Aug 1997 12:21:47 +0200 Organization: TU Chemnitz-Zwickau Lines: 42 Message-ID: <33F8223B.53F36475@Mathematik.TU-Chemnitz.DE> References: <33f4f975 DOT 1565929 AT news DOT nol DOT net> NNTP-Posting-Host: rigel.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Lonnie McCullough wrote: > > .globl _putpixeloffs24 > .align 4 > _putpixeloffs24: > pushl %eax > pushl %ebx > movl 12(%esp),%eax /* point eax to SURFACE struct */ > movl 20(%esp),%ebx /* put color in ebx */ > movl 4(%eax),%eax /* get surface->offset into eax */ > andl $0xFFFFFF,%ebx /* restrict color to lower 3 bytes */ > addl 16(%esp),%eax /* add offset to eax */ > .byte 0x64 /* selector is assumed to be in fs */ > andl $0xFF000000,(%eax) /* this is where it chokes */ > .byte 0x64 > orl %ebx,(%eax) /* no error here */ > popl %ebx /* restore regs */ > popl %eax > ret Are you sure?? I tried exactly the example above with the cross-assembler here from linux-DJGPP and it compiled without any error or warning. But it is of course gas 2.8.1. I don't if it works with gas 2.7 . > the line numbers are incorrect because there were other things in the Then why not doin so like I tested it. I simply copied the above in a single file test.s and then as -o test.o test.s Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************