Sign in to follow this  
plz45

Who can tell me the video mode of the original dos c&c is vga13h or modex 320x200?thx

Recommended Posts

Quote:
Original post by TravisWells
I'm pretty sure Red Alert used the same engine, and RA ran at 640x400 (or optionally 640x480 in windows)


I believe that RA ran in DOS used 320x200x256,not 640x400x256.sorry.

Share this post


Link to post
Share on other sites
please visit the webpage:http://www.gamedev.net/reference/articles/article315.asp
The video mode 13h
What is 13h?

Many computer games have used it such as DOOM and DOOM2, the original C&C the DOS version of C&C-RedAlert. It's also Quake's standard resolution, and QuakeII's non 3d excelerated standard resolution. So as you can see, it's a very widley used video mode...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
[QUOTE]
So as you can see, it's a very widley used video mode...
[/QUOTE]

It WAS a very widley used video mode,

Before windows OS, the computer world was ruled by DOS Os, and games where 2d sprited, it is a long history to tell why but all Videocards availables at that time (and still today) are compatible with an old but original design called VGA.

The VGA compatible videocard was very advanced at that time when computers used DOS, it have severals text modes aside the normals 80 characters wide into 22 lines of text. In the graphics side, it was capable to switch thevideo mode to 320x200 x 4 color, 640x480 x 16 colors and finally the mode you was talking about: 320x200 x 256 color. Every mode in the VGA is numbered starting from mode 0 then next mode 1, then next mode 2 etc.. programmers like to use numbers in Hexadecimal format, the 320x200x256 mode number was 19, or in hexadecimal = 13h.

From all those modes availables the games programmer preffered the mode 13h coze it have more colors to use, sprites look preaty well in 256 color mode, but the downside is that the 320x200 resolution sucks.

On day one smart guy discovered a way to re-programm the VGA writing some values to the VGA port, he modified in that way the original mode 13h to a new mode in 320x240 x 256 colors along with direct acces to max 256Kb of video memory (original 13h mode only allowed direct acces to max 64kb of video memory), so that extra memory can be used for backbuffers pages, store sprites, etc; that "unoficial" re-programed 320x240 x 256 mode was called Mode "X".

But all that history was before Windows, with Windows also came Directx and Opengl as THE way to program newers Videocards wich now they all comes with MB memory and fall more video modes like 1024x768x 32bit colors, all those new modes instead continuing numerating modes from 20, 21, 22, 23... etc they are now programmed usinf directx and opengl in different way.


Just One last Note:

If you ever hear about VESA then that was the newer standard that some people tried to implement with the new videocards video modes, they following the tradition of continuin numbering the video mode to 14h, 15h, 16h, etc, however that "standard" was not never popular in these days.



tp.

Share this post


Link to post
Share on other sites
thank all your replies,
Of course I know VGA mode & VGA modex under DOS ,also I know that it's M$ windows's world today,most people use DirectX or OpenGL to make today's games under Windows.But I like those DOS rts games that I used to play them day and night,especial westwood C&C and RA.
I wodered how they run under DOS,used VGA 13H or MODEX 320x200x256?
I hope someone can tell me exact anwser,thanks.

Share this post


Link to post
Share on other sites
IIRC you have to use assembler:


MOV AH,00 ; Request set mode
MOV AL,13 ; 320x200 resolution at 256 colours
INT 10H ; Call BIOS

AFAIK, OpenGL and DirectX can both do the same resolution though, which would be much simpler.

Share this post


Link to post
Share on other sites
Quote:
Original post by plz45
[...]M$[...]
Actually, it's spelled MS.
Quote:
[...]But I like those DOS rts games that I used to play them day and night,especial westwood C&C and RA.[...]
How does the fact that you liked the games mean that you should use exactly the same technology? Personally, I'd suggest you just use DirectX, OpenGL, or other existing API and just make the art pixelated if you want it to be (for example, by turning off texture filtering). There isn't much reason to make games that only run on emulators, and for the most part that is where DOS games are these days. Of course, playing old games is great, but making new games on inferior technology isn't neccessary to make games with the same gameplay and appearance.

Share this post


Link to post
Share on other sites
Quote:
Original post by plz45
I know that it's M$ windows's world today


You spelled Microsoft wrong. Actually, there is no dollar sign anywhere in the name. A common mistake though - the keys are like right next to each other!
(Yeah, I stole that sentence from another thread.. So sue me. [wink]

Share this post


Link to post
Share on other sites
Quote:
Original post by plz45
I wodered how they run under DOS,used VGA 13H or MODEX 320x200x256?
I hope someone can tell me exact anwser,thanks.



i think mode x (switching some bits on some vga registers and using map mask registers for example) because then you've got some extra memory which normally would have been allocated in system memory.

i've been programming mode-x in dos till 2 years ago for a game.

Share this post


Link to post
Share on other sites
I think mode-x is a specific mode, 320x240, which was originally described by Michael Abrash in a Dr Dobb's article. I can't remember if it was specifically that mode or if he used "mode-x" to refer to any tweaked 320x200 mode (I don't have the article handy); I think it was the former.

cheers
sam

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this