delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/09/16:20:58

Message-Id: <3.0.32.19971209005328.006972fc@195.53.80.2>
Date: Tue, 09 Dec 1997 22:17:40 +0100
To: djgpp AT delorie DOT com
From: Jose Luis Perandones Colino <joepc AT writeme DOT com>
Subject: Docs about asm
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019