Computing.Net > Forums > Disk Operating System > HIGHEST RESOLUTION IN DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

HIGHEST RESOLUTION IN DOS

Reply to Message Icon

Name: CHELSIE
Date: February 3, 2002 at 18:16:07 Pacific
Comment:

Hi all,
can any one help me with a querry, i realy like dos and was having a discusion with a friend he says that dos is no good because of the resolution eg:256 colors , this got me wondering what is the highest resolution possible in pure dos using the best methodes to achive it eg:DPMI ,32bit etc.
Thanks in advance chelsie



Sponsored Link
Ads by Google

Response Number 1
Name: Andrew Ordo
Date: February 3, 2002 at 20:31:52 Pacific
Reply:

Very strictly speaking, it all depends on the software. Most consider the DOS resolution limit to be VGA resolution, which is 640x480 pels, but this is not an absolute limit.

In real mode DOS, applications often talk to some devices (game/sound cards and modems are great examples) directly, without using a driver. Because of this, most apps are coded rather conservatively. (If you're a developer, you can't make wild assumptions about an end user's system, you play it safe and choose lowest-common denominator, most common, most likely features (VGA video, standard Hayes-compatible modem, Creative Labs Sound Blaster-compatible sound card, etc.)

Technically, DOS does not set any limit on colors or resolution. It's all up to the software.

In practice, though, I doubt you'll ever see software written for real mode DOS that goes beyond VGA specs (although it's certainly possible, and if you're good enough at C++ and coding for hardware, YOU could write DOS software that takes full advantage of your particular video display hardware.)

Technically, the highest resolution possible is determined not by DOS, but your video hardware, but if you're going beyond VGA standards, you'd have to code for your specific hardware (since you wouldn't be using the services of a driver), and that's the sort of thing that usually isn't done, hence the reliance on VGA standards.

I know I rambled a bit, but I hope this helps.


0

Response Number 2
Name: chelsie
Date: February 3, 2002 at 21:24:30 Pacific
Reply:

THANKS ANDREW,
YOU CONFIRMED WHAT I THOUGHT SO THAT HAS BEEN MOST HELPFUL, SO YOU WOULD HAVE TO WRITE NEW SOFTWARE FOR EVRY DIFFERENT HARDWARE CONBERNATION AS I UNDERSTAND IT DOS DOSE NOT HAVE DRIVERS PUT THE PROGRAMES TALK DIRECTLY TO THE HARDWARE. IS IT POSSIBLE TO USE A TVOUT CARD IN DOS ???, THANKS AGAIN CHELSIE


0

Response Number 3
Name: Travis Langston
Date: February 3, 2002 at 23:45:40 Pacific
Reply:

There is a relatively generic way to get higher resolutions out of dos with most newer (most being anything with enough memory to support higher resolutions, however this is by no means absolute) video cards besides programming for vga. It involves using VESA standards, which of course as Andrew said with vga, will have to be supported through the application, but can be used by many video cards. A few examples I can think of are the Aranchne web browser, New Deal Office, and Dos Qube. I am able to achieve 16 bit High color at a 800x600 resolution (and with New Deal and Dos Qube a 70 hertz refresh rate) with all three, with none being aware what video adapter I had for certain. There are higher resolutions listed for each app, but I have a 15" monitor and they would be unusable (to me) and so I haven't tried them. In any case, just thought I'd let you know.


0

Response Number 4
Name: Andrew Ordo
Date: February 4, 2002 at 15:07:32 Pacific
Reply:

Oh my god--I forgot all about Arachne! Duh!

Thanks for your post, Travis--I hadn't heard of New Deal Office and Dos Qube before (and now I'm checking them out!).

Take care!


0

Response Number 5
Name: fred6008
Date: February 5, 2002 at 03:28:50 Pacific
Reply:

Let's come down from the clouds of theory. DOS is typed white letters on a black background. It has no need for high resolution. DOS programs with GUI interfaces set their higher resolution limited by the video card and the monitor. If 256 colors resolution did not come off the video card without a driver, a driver would have to be installed in the CONFIG.SYS for DOS applications to run 256 colors. Almost all higher resolution drivers are installed in Windows.


0

Related Posts

See More



Response Number 6
Name: fred6008
Date: February 5, 2002 at 08:03:43 Pacific
Reply:

It is mostly a matter of your video card what your monitor can display. There are two factors involved in resolution--besides color there is the number of pixels.
DOS is a text mode that all cards can handle. It is graphics that separate good video cards from one another. I tried to look it up, and I believe that a VGA card has to display 640 by 480 pixels and display 16 colors. Higher resolutions are SVGA. Vesa is a set of standards that makes SVGA cards interchangeable. I believe high resoluton DOS games that require SVGA video cards supply their own driver directly to the video card in some cases and mostly conform to the VESA standard.


0

Response Number 7
Name: chelsie
Date: February 5, 2002 at 08:33:03 Pacific
Reply:

THANKS GUYS FOR ALL YOUR HELP
REGARDS CHELSIE


0

Response Number 8
Name: Andrew Ordo
Date: February 5, 2002 at 13:23:14 Pacific
Reply:

Fred6008,

If you'll read what Travis and I posted, you'll see that we're all saying the same things:


* DOS sets no arbitrary limits
on resolution or color depth.

* DOS applications are (with
terribly few exceptions,
anyway!) coded to talk directly
to the video display hardware.

* Because developers have no way
of knowing what specific video
display hardware an end user
has, they generally stick to
VGA standards (640x480 pixels,
256 colors, with a refresh
rate of 60Hz) because VGA is
the lowest common denominator
standard and it's most likely
supported on any given PC.

* Some developers have ventured
beyond the VGA standard and
support standard display modes
defined by VESA (The Video
Electronics Standards
Association), which offer
higher resolutions, color
depths, and refresh rates than
those defined by VGA. (These
VESA modes, as well as other
display modes that provide
capabilities that exceed VGA,
are often generally referred to
as "SuperVGA", or "SVGA".)


> Let's come down from the clouds of theory.

This isn't theory; we're talking about how the hardware and software operate and the common practices of developers.

> DOS is typed white letters on a black background.

That's is like saying Linux is typed white letter on a black background, or that Windows is a green or blue desktop with a taskbar and start menu!

The standard default DOS *SHELL* happens to be text mode with white letters on a black background, but that's just a default text mode and a default color. The standard DOS text mode colors are black, blue, green, cyan, red, magenta, brown, light grey, dark grey, pale blue, pale green, pale cyan, pale red, pale magenta, yellow, and white. One of them just happens to be the default. Also, more than one text mode is available (providing it's supported by your hardware).

DOS is merely an operating system. Both text and graphics modes are available (provided you've got a display adapter that supports graphics) and a variety of different text character sizes and colors are available. Play around with MODE sometime.

> It has no need for high resolution.

Spoken like a man who has never heard of AutoCAD!

Believe it or not, there was a day when people ran CAD/CAM and other graphics-related software on DOS. "No need for high resolution"?
What about Web browsers? What about digital imaging and character recognition software? What about photo editing software? What about desktop publishing? What about animation?

Of course, it depends on what you mean by "high resolution", but geez... Besides, VESA BIOS Extensions allow for some pretty high resolutions under DOS.

> DOS programs with GUI interfaces set their higher resolution limited by the video card and the monitor.

This is *exactly* what I said in my first post!

> If 256 colors resolution did not come off the video card without a driver, a driver would have to be installed in the CONFIG.SYS for DOS applications to run 256 colors.

Wrong. No device driver is used. No matter what resolution, color depth, or refresh rate is used, it doesn't come from using a device driver (Depending on how you define "define driver", there may be exceptions to this, which I'll mention in a minute.). As stated earlier, virtually all DOS apps talk *directly* to the video hardware, without using the services of a driver. A video display driver would not be installed in the CONFIG.SYS file for DOS applications to run more than 256 colors. DOS apps are talking directly to the video hardware; they are not using a driver.

In other words:

If you get 640x480 with 256 colors (VGA standard) in real-mode DOS, it doesn't come from a driver. No driver is used. The application supports this mode directly.

If you get 300x200 with 4 colors (CGA standard) in real-mode DOS, it doesn't come from a driver. No driver is used. The application supports this mode directly.

If you get 1,024x768 with 65,536 colors in real-mode DOS, it doesn't come from using a driver either. No driver is used. The application supports this mode directly.


Regardless of the resolution or color depth, no driver is used. Virtually all real-mode applications talk directly to the video hardware. They are not using drivers.

For a DOS application to support ANY display mode--no matter what the resolution or color depth--the application must support the particular video chipset in your particular video card. It doesn't matter whether it's 640x480 and 256 colors or not. The application must support your video chipset. Fortunately, most video cards can emulate the IBM PS/2 VGA Display Adapter, making the VGA standard almost universal.

The 640x480 256 color display doesn't just "come off the card". Support for this mode is coded into the app just like support for any other mode.

In addition, many cards support VESA BIOS extensions, which provide for resolutions well beyond 640x480.

There is nothing magical about 640x480 resolution or a 256 color depth or a refresh rate of 60Hz. It just happens to be a display mode that most systems can handle and developers often rely on it as a lowest common denominator, assuming that if they code their software to support VGA mode, it'll work on any given system.

A DOS app could just as easily support ANY resolution, color depth, or refresh rate. Device drivers have nothing to do with it. The gotcha is that the DOS apps talk directly to the hardware. This makes the apps hardware-specific. i.e., the app must support the exact video chipset you've got. Fortunately, VGA became quite a popular standard and VESA has standardized many of the so-called "Super VGA", or "SVGA" modes, which are supported by VESA BIOS extensions, making VESA-standardized SVGA modes somewhat common.

The IBM PS/2 VGA Display Adapter was terribly popular and widely copied. It was the Game Blaster/Sound Blaster of video hardware. Nearly all video display adapters made after 1987 or so can emulate this video card or are otherwise compatible with it. Nearly all analogue PC monitors made since its introduction are compatible with it. In other words, the IBM VGA display, much like the Sound Blaster and Rolnd MPU-401, became a standard, widely supported and widely emulated. This is the reason most DOS apps support the 640x480, 256 color, 60Hz refresh rate VGA standard.

Third parties developed display adapters that exceeded the IBM VGA display. These were commonly referred to as "Super VGA" or "SVGA" displays, but keep in mind that "VGA" was an actual card and that "SVGA" was not actually actually a standard or even really a set of standards! VESA (The Video Electronics Standards Association) standardized a number of these so-called "SVGA" modes, creating a set of VESA modes. These VESA modes are supported by VESA BIOS extensions.

Thanks to VESA's standardizing some of the SVGA modes, developers have been supporting them, hence the DOS apps that provide resolution greater than 640x480, more than 256 colors, and vertical refresh rates higher than 60Hz.

Again, there's nothing that says DOS has to support VGA, VESA, or any other graphics modes. DOS is video agnostic. It doesn't care. Video support is built into the applications (or application-specific modules loaded by said applications). No drivers are used.

Even before the VESA standards, some DOS apps that required high resolution (CAD/CAM apps, for example), supported higher resolutions than 640x480. The apps I have seen that do this have dynamically loadable modules, written to support the video chipset of a specific card. The module is referenced by a configuration text file, which tells the app which module to load. When the app loads, it scans the config file, loads the module for the card, and the card is supported. (This isn't a far cry from setting up video drivers for X-Windows or XFree86.) These modules are technically device drivers, but they are not the type of generic, non-application-specific drivers most people are talking about when they use the word "driver". These device drivers are coded specifically for the application that uses them and in a sense, become a part of the application when loaded. They are not generic in nature and cannot be shared by different apps like Windows, OS/2, and Linux drivers. For the sake of simplicity, I'm not going to refer to these application-specific modules as "drivers", even though they technically are.

> Almost all higher resolution drivers are installed in Windows.

NO video drivers are installed DOS--higher resolution or not. They are ALL installed in Windows (or OS/2 or whatever). Windows provides an environment that makes it possible for all applications written for that environment to use a common Windows driver. In other words, in Windows (unlike DOS), support for a device does NOT have to be coded into the application. All the niggly bits concerning registers, firmware routines, hardware interrupt requests, and chipset specifics are abstracted by the Windows device driver. The app need not worry about it, it just uses the driver. (There are a few exceptions and cases in which some specific apps might need to access hardware directly, especially diagnostic software.) This driver model does not exist in DOS! Unlike in Windows, the application must provide direct, device-specific support for the hardware.

I have seen one or two DOS apps that had video display support somewhat abstracted away from the application code. These apps used dynamically loaded modules specified in a text-based configuration file (pretty much like X-Windows or XFree86). In these cases, the application didn't need to know what hardware you had, you just installed the proper module and specified it in the config file. Technically, these modules ARE device drivers, but I've just covered this in an earlier paragraph.

> It is mostly a matter of your video card what your monitor can display.

Again, this is *exactly* what I said in my first post! Didn't you read it????

> There are two factors involved in resolution--besides color there is the number of pixels.

Dude, resolution IS the number of pixels!

Resolution is defined (at least in this context) as pixel density or the number of pixels. (The higher the density, the greater the number of pixels, I'm not going to bother making a distinction between the two terms.) Resolution is not defined by color depth. Resolution is a separate figure. For example, 300x200 completely describes a resolution. Resolution says nothing about color.

The higher the resolution, the more video memory is required. The greater the color depth, the more memory is required. Display adapters have a limited amount of memory, so in some cases, you may have to trade off one for the other. In other words, using a very high resolution may not leave enough memory available for a large number of colors. In these cases, color depth can set limits on the highest resolution you can get and vice versa.

There is a third factor in the mix: refresh rate. (This is limited by the speed of your RAMDAC.) In some cases, some video hardware may not be able to display certain resolutions at certain refresh rates with certain color depths. For example, a video card might be able to deliver a maximum resolution of 1600x1200 at 72Hz, but no more than 1280x1024 at 85Hz.

> DOS is a text mode that all cards can handle.

DOS IS NOT A TEXT MODE!

DOS is an operating system. DOS can handle several different text and graphics modes, with different text sizes, graphics resolutions, and colors. DOS even includes commands for switching between these different modes. It's called MODE.

> I tried to look it up, and I believe that a VGA card has to display 640 by 480 pixels and display 16 colors.

If a card can't display 640x480 pixels with a *minimum* of 16 colors, it certainly has no right to call itself VGA compatible. However, a VGA card may display resolutions other than 640x480 and may display more or fewer colors (including no color at all, an a special monochrome mode). The term "VGA" has generally come to mean a video display mode defined by a resolution of 640x480 pixels, a color depth of 256 colors (not 16,although 16 is the minimum), and a resolution of 60Hz. What the term "VGA" may not carry the same meaning, depending on what you're talking about. "VGA" originally referred to a display system that supported many different modes, not necessarily a graphics display mode.

The original VGA display supported several different resolutions, color depths, and modes of operation, including character based and APA (All Points Addressable).

The original VGA was introduced in two forms: either built into the PS/2 motherboard or as an 8-bit ISA expansion card called the IBM PS/2 VGA Display Adapter. (I happen to own two of these cards.)

The original VGA display was capable of producing 256 simultaneous colors from a pallette of 262,144 colors. The original card maxed out at 16 colors at 640x480. To get 256 simultaneous colors, you had to drop the resolution down to at least 320x400, but this was due to memory limitations. Again, several other modes were also available.

> Higher resolutions are SVGA.

Graphics modes that provide resolutions higher than 640x480 and/or more than 256 are generally referred to as "SVGA", but keep in mind that "SVGA" is not neither a display mode nor a standard. It's a term originally coined to collectively describe third-party display adapters competing with IBM's VGA display. There were display systems that offered higher resolutions that actually had their own names. Of course, now there's the VESA-standardized SVGA modes, VESA SVGA. These are standardized modes supported by VESA BIOS extensions and some DOS applications, allowing DOS applications that take advantage of them to display resolutions greater than 640x480, more than 256 colors, and vertical refresh rates higher than 60Hz (Which is what Travis was talking about.)

> Vesa is a set of standards that makes SVGA cards interchangeable.

This is exactly what Travis was saying!


> I believe high resoluton DOS games that require SVGA video cards supply their own driver directly to the video card in some cases and mostly conform to the VESA standard.

This is correct, but again, this is exactly what Travis and I were saying! Did you not read our posts?


0

Response Number 9
Name: Mark p
Date: February 9, 2002 at 22:14:54 Pacific
Reply:

Andrew & Travis great posts:) Andrew I'm going to cut and paste yours to a text file, if thats ok. I'll use it for future reference.

Have a good one guys.


0

Response Number 10
Name: Andrew Ordo
Date: February 11, 2002 at 15:40:23 Pacific
Reply:

Oh, god--I've become a reference!

If you're really interested in this sort of thing, check out

MonitorWorld.com The Monitor Authority
http://www.monitorworld.com/
(A *fantastic* resource!)

and of course, Scott Mueller's Upgrading and Repairing PCs, published by QUE Books. (Scott Mueller is a god!)


0

Response Number 11
Name: Marco
Date: May 16, 2002 at 07:45:47 Pacific
Reply:

I have a DOS based app. developed in Clarion 2.1 and I´m trying to run it under Windows XP. I have the following error, the app. displays an "A" in the Menu intersection of a double line with a single line. I had this problem under w9x and solved it putting the following instructions in the autoexec.bat file
MODE CON CODEPAGE PREPARE=((437) C:\WINDOWS\COMMAND\EGA.CPI)
MODE CON CODEPAGE SELECT=437

Now I´m trying to put this instructions in Windows XP in the
%SystemRoot%\System32\Autoexec.Nt File
but it doesn´t work.

Pls Help me. What can i do ?
Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

missing emm386.exe logon batch file



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: HIGHEST RESOLUTION IN DOS

resolution in DOS www.computing.net/answers/dos/resolution-in-dos/3539.html

Screen Resolution in DOS www.computing.net/answers/dos/screen-resolution-in-dos/12237.html

Accessing ext USB2.0 storage in DOS www.computing.net/answers/dos/accessing-ext-usb20-storage-in-dos/13845.html