home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8802 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.8 KB

  1. Xref: sparky comp.os.linux:8802 comp.sys.ibm.pc.hardware:22381
  2. Newsgroups: comp.os.linux,comp.sys.ibm.pc.hardware
  3. Path: sparky!uunet!gumby!destroyer!news.iastate.edu!help.cc.iastate.edu!willmore
  4. From: willmore@iastate.edu (David Willmore)
  5. Subject: Re: Need help with programming ET4000
  6. Message-ID: <willmore.714424230@help.cc.iastate.edu>
  7. Keywords: ET4000 SVGA
  8. Sender: news@news.iastate.edu (USENET News System)
  9. Organization: Iowa State University, Ames IA
  10. References: <willmore.714336630@help.cc.iastate.edu> <1992Aug20.234708.6762@tom.rz.uni-passau.de>
  11. Date: Fri, 21 Aug 1992 19:10:30 GMT
  12. Lines: 31
  13.  
  14. burkert1@platon.fmi.uni-passau.de (Klaus Burkert) writes:
  15. >On VGA-chips the registers are 'indexed', because alot of them have to fit
  16. >in very few port-adresses (from memory the ET4000 has about 80 registers).
  17.  
  18. >These registers are accessed as follows (for your example):
  19.  
  20. >write the desired index (33h) to port 3d4h 
  21. > (mov dx,3d4;   mov al,3;   out dx,al)
  22.  
  23. >and access the indexed register at port 3d5h.
  24.  
  25. >That's the whole magic with indexed registers.
  26.  
  27. >Ciao, Klaus.
  28.  
  29. This is what I was looking for.  The idea of indexing registers on a vga 
  30. card is repulsive, but "do as the romans do."  I have programed on other 
  31. indexed i/o systems before and it hasn't taken much time for me to get 
  32. used to this one.  I already have the code to to Tseng 4000/3000 detection
  33. running.  I'll get the rest done soon.
  34.  
  35. I would like to thank everyone for their help.  I have received numerous
  36. replies.  Many of them were asking me to forward them what I do find. 
  37. Since there is so much need, I am planning on writing a toutorial in both
  38. basic and pascal to show people how to program graphics and text on the
  39. Tseng family.  I'll also include C if I get my compiler soon.  I hope.
  40.  
  41. Thanks again!
  42.  
  43. --David Willmore
  44. willmore@iastate.edu
  45.