Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!ptsfa!nonvon!apn From: apn@nonvon.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: EGA: How do I find the values of the colour registers? Message-ID: <317@nonvon.UUCP> Date: Sat, 16-May-87 17:06:02 EDT Article-I.D.: nonvon.317 Posted: Sat May 16 17:06:02 1987 Date-Received: Sun, 17-May-87 02:54:22 EDT References: <8314@watdaisy.UUCP> Distribution: comp Organization: NONVON Systems Computer Research Group Lines: 29 in article <8314@watdaisy.UUCP>, datanguay@watdaisy.UUCP says: > > In EGA Bios ram there is a pointer at 0040:00a8 which points to a table > of pointers. The second of these pointers points to a buffer into which > the values for the palette registers will be saved. How do I get bios > to do the save? I have tried setting up my own pointer table (by changing > the pointer at 04:00a8 to another set of pointers with my own values) and > then setting a register. I also tried int 10h ah=12h bl=10 (both hex and > decimal), which is a call to return ega info. > > David Tanguay assume hex How about using int 10, ah=10,al=0,bh=color value, bl=palette register or if setting all of them then try int 10, ah=10, al=2, es:dx = segment:offset of color list which is 17dec bytes 0-f are color values to be loaded to palette registers 0-f byte 10 is the new border value color register. Alex P Novickis 707 575 9616 UUCP: {ihnp4,ames,qantel,sun,seismo,amdahl,lll-crg,pyramid}!ptsfa!nonvon!apn {* Only those who attempt the absurd ... will achieve the impossible *} {* I think... I think it's in my basement... Let me go upstairs and check. *} {* -escher *}