Mail Archives: djgpp/1997/12/09/16:20:58
At 01:57 8/12/97 -0500, Doug Gale wrote:
>void setdaccolor(byte color, byte red, byte green, byte blue) {
> __asm__ __volatile__ (
> "movl $0x3C8, %%edx \n\t"
> "outb %%al, %%dx \n\t" /* "a" below put color in eax
> "incl %%edx\n\t"
> "movb %b1, %%al \n\t" /* red */
> "outb %%al, %%dx \n\t"
> "movb %b2, %%al \n\t" /* green */
> "outb %%al, %%dx \n\t"
> "movb %b3, %%al \n\t" /* blue */
> "outb %%al, %%dx"
> : : "a" (color), "rm" (red), "rm" (green), "rm" (blue)
^ ^^ ^^ ^^
Where can i find docs about this??
I know some "values" ("g","=f"), but where can i find a list with all??
--
Jose Luis Perandones Colino
mailto:joepc AT writeme DOT com
ICQ: 5209447
EmuWorks - http://www.geocities.com/SiliconValley/Bay/9494
La Bañeza - Leon - Spain
- Raw text -