delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/07/13:03:24

From: "Hugo Jose Ferreira" <hugojf AT mail DOT telepac DOT pt>
Newsgroups: comp.os.msdos.djgpp
Subject: PLEASE HELP with ExtAsm
Date: Sun, 7 Dec 1997 12:17:32 -0500
Lines: 25
Message-ID: <66e3ui$9jd$1@duke.telepac.pt>
NNTP-Posting-Host: 194.65.176.39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi !
Can someone, please, help me with this Assembly Routine...
I'm new to the Extended ASM of DJGPP.. I used to program with RealMode, TASM
Systax,
but, all this AT&T syntax confuse me ! Please, Correct this function:

void setdaccolor(byte color, byte red, byte green, byte blue) {
__asm__ __volatile__ (
  "movw  $0x3C8, %%dx \n\t"
  "outb  %%al, %%dx \n\t"
  "movw  $0x3C9, %%dx \n\t"
  "movb  red, %%al \n\t"
  "outb  %%al, %%dx \n\t"
  "movb  green, %%al \n\t"
  "outb  %%al, %%dx \n\t"
  "movb  blue, %%al \n\t"
  "outb  %%al, %%dx"
  : : "rm" (color)
  : "%eax", "%edx" );
}

Thanks In Advance...



- Raw text -


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