Mail Archives: djgpp/1997/07/12/18:19:24
From: | "Joshua Eckstein" <kwe1 AT flash DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | AT&T Assembly, Random Functions
|
Date: | Sat, 12 Jul 1997 10:49:20 -0500
|
Organization: | Flashnet Communications, http://www.flash.net
|
Lines: | 27
|
Message-ID: | <5q891u$na8$1@excalibur.flash.net>
|
NNTP-Posting-Host: | dasc7-69.flash.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I wrote the following function in a program last night. I have a couple of
questions, because it compiles fine, but when it's linking, it reports in
the setpal function an
"undefined reference to red", and gre, and blu. I think it probably has
something to do with the byte registers (ch, dl, dh). I'm not sure, though
-- I'm not fully used to AT&T asm yet.
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");
}
Thanks!
-Josh
kwe1 AT flash DOT net
- Raw text -