home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / ibm / pc / misc / 17125 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.4 KB

  1. Path: sparky!uunet!ukma!darwin.sura.net!udel!gvls1!faatcrl.faa.gov!phil
  2. From: phil@tgf.tc.faa.gov (Phil Willows)
  3. Newsgroups: comp.sys.ibm.pc.misc
  4. Subject: Re: Setting Colors on ET4000 without Interrupt ?
  5. Date: 27 Jan 1993 22:36:35 GMT
  6. Organization: FAA Technical Center, Pomona, NJ    
  7. Lines: 33
  8. Distribution: world
  9. Message-ID: <1k72pjINNq41@faatcrl.Faa.Gov>
  10. References: <p7003ag.727108180@sun1>
  11. NNTP-Posting-Host: offserv2.faa.gov
  12. Keywords: ET4000 interrupt colors
  13.  
  14. p7003ag@sun1.LRZ-Muenchen.DE writes:
  15.  
  16. >Yoho ! 
  17.  
  18. >can anybody please tell me, how to set the Colorvalues (the 18bit ones)
  19. >on my ET4000 without using the BIOS Interrupt ?
  20.  
  21. >Alaric
  22.  
  23. You weren't specific about what it is you are asking for, but here goes...
  24.  
  25. When you set a pixel to a value, you are actually placing a index to a
  26. lookup table into video memory.  The lookup table points to a three byte
  27. area that changes the appearance of the pixel.  The ET4000 is pretty
  28. much standard in this respect.
  29.  
  30. By setting register 0x3C8 to the index you wish to change, you
  31. then send three consecutive bytes to 0x3C9.  The first byte controls
  32. the red, the second green, and the third blue.
  33.  
  34. Just remember, every pixel that is set to that index will change when
  35. you set its palette entry.
  36.  
  37. DON'T MESS WITH THE LOOKUP TABLE.
  38.  
  39. The lookup table can be modified to look at the same palette entry as
  40. another table entry.  It can be a real spaghetti bowl problem.
  41.  
  42.                    -Phil
  43.  
  44.  
  45.  
  46.  
  47.