Here is a hint:

__asm__("movl %0,%%eax" : : "g" (line[l].word[0]) );

that is inline for "mov eax,line[l].word[0]"




>
>   loop0:
>
>       in      al, dx
>       and     al, 0x08
>       jz      loop0
>
>       mov     dx, 0x3C8               // Send the palette
>       mov     al, 0
>       out     dx, al
>       mov     cx, 768
>       lds     si, pal
>       mov     dx, 0x3C9
>       rep     outsb
>       pop     ds
>
> I've translated it to:
>
> void setPalette( uchar *thePalette )
>   {
>     uchar   stat;
>
>     outb( 0x3D6, 0x14 );                // Select XR14
>     stat    = inb( 0x3D7 ) & 0x8F;      // Enable VSYNC, Retrace, and HSYNC
>     outb( 0x3D7, stat | 0x50 );
>
>     while ( inb( 0x3D7 ) & 0x08 )
>         continue;
>
>     outb( 0x3C8, 0 );                   // Send the palette
>
>     /* How do I put in the in-line assembly here? */
>
>   }
>
>
>
>


------------------------------------------------------------------
Unsubscribe:  To:   [EMAIL PROTECTED]
              Body: unsubscribe linux-svgalib

Reply via email to