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