Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!necntc!ames!ptsfa!nonvon!apn From: apn@nonvon.UUCP (root) Newsgroups: comp.sys.ibm.pc Subject: Re: EGA: How do I find the values of the colour registers? Message-ID: <380@nonvon.UUCP> Date: Mon, 18-May-87 13:12:49 EDT Article-I.D.: nonvon.380 Posted: Mon May 18 13:12:49 1987 Date-Received: Tue, 19-May-87 04:22:44 EDT References: <8320@watdaisy.UUCP> Distribution: comp Organization: NONVON Systems Computer Research Group Lines: 55 in article <8320@watdaisy.UUCP>, datanguay@watdaisy.UUCP says: >> How about using int 10, ah=10,al=0,bh=color value, bl=palette register >> or if setting all of them then try >> [....] > > Oops. Sorry for the lack of clarity, but I want to *read* the values of the > palette registers, not write them. Thanks... > That one is a bit tougher. The EGA card you have is probably based on the C&T chip set. DId you say you would like to be hardware independant on this ?? (*laugh* *cough*) One way to do it independantly is to write a system "extension" and filter all int 10 calls and trap the useful infor- mation and keep around in ram somewheres. Then just jump to where the old int 10 went to. This is the only system/hardware independant way that I found. Now for some hardware dependent methods: C&T chipset : no way!! palette registers are W/O (write only) paradise chipset : roumor is that it is possible Possible help: Some mouse drives do the above for you... lets see who: logitech : Yes, ega functions can be done through logitech microsoft : Yes, ........... (same).....,................. however, since m/s 's drivers are not written by them I am not sure if the version they are now shipping does this or not... It is certainly not in their application note. After talking to the people that write their drivers I concluded that (see note below) it was a very new feature and may only be in house as of 1/87 contriver: no way. This driver does not even know about EGA cards (or pretend to!!) In either case, it may be easier to do the stuff youself and not bother with the 3 zillion versions of mouse drivers around. (note: as promised up above somewheres) I contacted the driver people a while back because I was in a position of needing a much-more-flexible-than-what's-available driver written for a new (and actually working and available) pointing device. I'm still writting it, after 2 months and plan to make it public domain unless you are one of the above mentioned companies (*evil grin*) Alex P Novickis Fulcrum Consulting 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 *}