Mail Archives: djgpp/1997/08/18/07:51:39
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 *
*****************************************************************
- Raw text -