delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/23/16:52:14

Message-ID: <33D66F49.25D8@lr.net>
Date: Wed, 23 Jul 1997 16:53:29 -0400
From: Isaac Waldron <waldroni AT lr DOT net>
Reply-To: waldroni AT lr DOT net
Organization: The Computer Nerd
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Thanks and Palette Setting

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 -


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