🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1787

how to do vga mode 0x13 in os2?

#1787
From: Frank Kuan
Date: Mon, 04 Jan 1993 21:30
26 lines
1461 bytes
I have been writing a graphics program that uses vga mode 0x13 (320x200x256)
as a dos application with borland C.  The difficulties I'm having are
all related to 16 bit limitations.

I want to use 32 bits, statically allocate more than 64k, and still be
able to use a source debugger and not have it crash. 

I think the way to go is to develop this as a 32 bit flat model application
under os/2, and when it is stable, port it to a 32 bit dos extender since
the masses use dos. 

I have a few questions concerning this:

1. Is watcom the way to go, gcc, or Zortech? (C++ would be nice, but not
	essential, so that's not a consideration) 
2. I have four of the .inf redbooks for os2, but I could not find info
	on how to talk to the video card to pop it into mode 0x13, or
	even how to bring up an os2 full screen. What address is vram
	mapped to?
3. I've never seen an os/2 app written to use vga mode 0x13. Are there
	any available with source?

Any advice, answers, hints would be greatly appreciated.

- Frank  
Technical Details
Message-ID: <1993Jan4.213021.16158@dms.agames.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uwm.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!dms!kuan

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer,comp.os.os2.programmer,comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uwm.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!dms!kuan
From: kuan@dms.agames.com (Frank Kuan)
Subject: how to do vga mode 0x13 in os2?
Message-ID: <1993Jan4.213021.16158@dms.agames.com>
Organization: AGC
Date: Mon, 4 Jan 1993 21:30:21 GMT
Lines: 28