home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9298 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.2 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!msus1.msus.edu!msus1.msus.edu!longshot
  2. Newsgroups: comp.os.msdos.programmer
  3. Subject: VGA 360x480 mode
  4. Message-ID: <LONGSHOT.92Sep12015529@att2.cs.mankato.msus.edu>
  5. From: longshot@att2.cs.mankato.msus.edu (Erik Green)
  6. Date: 12 Sep 92 01:55:29
  7. Distribution: comp.os.msdos.programmer
  8. Organization: Long polymers in double-helix formation
  9. Nntp-Posting-Host: att2.cs.mankato.msus.edu
  10. Lines: 39
  11.  
  12.  
  13.   If this isn't the right place for this, cope.
  14.  
  15.  
  16.   I am currently going nuts trying to write routines that will work in/with
  17. the 360x480x256 video mode shown in example by John Bridges in his VGAKIT41
  18. listings available at finer archives anywhere.  He refers to this mode 
  19. as mode X, but I note that it is different from the Mode X described by
  20. Michael abrash in his code from DDJ.  The code (routines that write directly
  21. to the video hardware, mostly) to enter into both of these modes appears
  22. quite similar.  On to my problem: I have written routines in TC2.0(not c++)
  23. and MASM to set the 360x480 mode, and also to plot pixels on the screen
  24. in this mode.  I think I'm setting the mode correctly, as the screen clears
  25. without snow or flashes in the same manner it does when I set standard mode
  26. 13h, but If I try to set the palette using interrupt 10h, I get a nasty flash
  27. on the screen.  Attempting to draw pixels by calculating the memory location
  28. ((yposition * xwidth)+(xposition/4)) (Side note: In Bridges' code, xwidth is
  29. commented as having the value of 360, and in a different section, is set to
  30. 90 and 80.  Anybody know the correct value?) and outputting the bitplane 
  31. mask to the sequencer appears to do nothing.
  32.  
  33.    I would like to use this mode for a few programs, but I can't seem to get
  34. it right.  This mode would be better than the 320x240 mode, as I don't 
  35. need to use animation or more than 1 video page.
  36.  
  37.   For reference, my video card is a no-name 256k model with a Paradise 
  38. chipset(PVGA1A, I think).  I'm working on a 80386-25DX with TC2.0 and
  39. MASM 4.0.
  40.  
  41. Any Ideas, people?  I've worked on this for about 6 hours, myself %-(
  42.  
  43. Thanks for any help,
  44. Erik
  45.  
  46. --
  47. Erik "Longshot" Green    
  48. longshot@(vax1 | att2.cs | krypton | theory.cs).mankato.msus.edu  
  49.      "Ash nazg durbatuluk, ash nazg gimbatul, ash nazg
  50.        thrakatuluk agh burzum-ishi krimpatul!"
  51.