Mail Archives: djgpp/1996/07/31/08:50:32
void v_putpixel(int x,int y,char clr)
{
__asm__ __volatile__(
"pushl %%eax\n"
"pushl %%edi\n"
"pushw %%es\n"
"movl %0,%%eax\n"
"movl %%eax,%%edi\n"
"shll $8,%%eax\n"
"shll $6,%%edi\n"
"addl %0,%%eax\n"
"addl %%eax,%%edi\n"
"movw _dos_ds,%%ax\n"
"movw %%ax,%%es\n"
"movb %2,%%al\n"
"stosb\n"
"popw %%es\n"
"popl %%edi\n"
"popl %%eax");
}
On Sat, 27 Jul 1996, Joona wrote:
> How can I draw a pixel on screen?
> Could someone explain it short and clearly and mail me an
> example program.
>
>
- Raw text -