home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4737 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!baylor
  2. From: baylor@ut-emx.uucp (Baylor)
  3. Newsgroups: rec.games.programmer
  4. Subject: Is EGA diff than Mode X?
  5. Message-ID: <83906@ut-emx.uucp>
  6. Date: 18 Nov 92 22:21:21 GMT
  7. Organization: The University of Texas at Austin; Austin, Texas
  8. Lines: 43
  9.  
  10.  
  11.     I still don't seem to have the hang of video modes.
  12.     By my recollection, there are 8 pixels/byte in EGA mode,
  13. and to get a color, you add the bits from each plane to get the
  14. color (plane 3 seems to be the high value, so for value/color
  15. 1010, or 9 decimal, it's stored in say bit 7 of plane 3 as 1,
  16. 2 as 0, 1 as 1 and plane 0 as 0).
  17.     Also, i thought that mode $13 used only one plane which is
  18. why it could only access 64k. Also, the mode is linear (all 8 bits
  19. are always in the same plane).
  20.     But according to Ferraro (pg 147):
  21.     "Mode 13 hex uses all four bit planes...The four planes are
  22. chained so that sequential bytes in host memory are loaded into 
  23. alternating bit planes."
  24.     So does that mean that mode $13 is planar, but color bits
  25. aren't split between planes? If that is the case, why only 64k?
  26. I guess if you had 6 colors, 0, 5, 15, 6, 8, 16, they would be stored
  27. with color 0 and 8 in plane 3, 5 and 16 in plane 2, etc.
  28.     Also, how is Mode X,Y,Z,etc laid out? I would think they're
  29. like EGA and have 2 bits per pixel, with the bits making a color
  30. spread over several planes. But in staring at the linear_to_pbm
  31. functions in my excellent Egg archives, all the function seems to
  32. do is take every fourth pixel/byte and place them next to each other,
  33. repeated at the end for each plane. That means all 8 bits for a color
  34. are in the same plane, like they say mode $13 is, but completely
  35. unlike EGA modes.
  36.     I still don't understand using color planes, and i hope to 
  37. fairly soon do both a demo game in both EGA and Mode X, and thought
  38. that knowing planes for one obviously moved over.
  39.     And what is this Chain 4 thing I've heard of? I have all
  40. Abrashes code from ftp, but never got the text of the article.
  41.     Can anyone help? I have lots of vga source code (no ega
  42. code unfortunately), but very little understanding as to how they 
  43. work.
  44.     Thanks    
  45.                             - baylor
  46.  
  47.  
  48. -- 
  49. ****************************************************************************
  50. baylor@emx.utexas.edu   "There is no such thing as an innocent Kennedy"
  51. I'm to sexy for $4.69 an hour...
  52. ****************************************************************************
  53.