From: leathm AT solwarra DOT gbrmpa DOT gov DOT au (Leath Muller) Message-Id: <199707160333.NAA02600@solwarra.gbrmpa.gov.au> Subject: Re: AT&T Assembly, Random Functions To: kwe1 AT flash DOT net (Joshua Eckstein) Date: Wed, 16 Jul 1997 13:33:47 +1000 (EST) Cc: djgpp AT delorie DOT com In-Reply-To: <5q891u$na8$1@excalibur.flash.net> from "Joshua Eckstein" at Jul 12, 97 10:49:20 am Content-Type: text Precedence: bulk > I'd also like to know how you can rotate the palette quickly.... Any tips > or code would help. (Please reply by e-mail at bottom) > void setpal (int index, byte red, byte gre, byte blu) > { > asm ("movw $0x1010, %ax > movw $_index, %bx > movb $_red, %ch > movb $_gre, %cl > movb $_blu, %dh > int $0x10"); > } If you want to access your variables that way (in asm with preceding _) you have to declare red, gre and blu as _global_... Leathal.