Mail Archives: djgpp/1997/07/23/16:52:14
First off, I would like to thank everyone who has helped me with
previous problems. I did get my pcx.h file working, and I have one more
question.
How would I rewrite the following in AT$T asm syntax?
void set256Palette(char far *palreg) {
asm
{
push es //save es register
mov ah,10h // function 10h
mov al,12h //subfuntcion 12h (set pal regs)
mov bx,0 // from VGA palette register 0
mov cx,256 // change all 256 registers
les dx,palreg // (es:dx) points to our colour regs
int 10h
pop es //restore es register
};
};
Any help is apprecciated,
--
-Begin Signature-
Isaac Waldron <waldroni AT lr DOT net> N1YZI
http://www.geocities.com/SiliconValley/Lakes/5703/home.html
-End Signature-
- Raw text -