Taking color mode for granted?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
rdos
Member
Member
Posts: 3306
Joined: Wed Oct 01, 2008 1:55 pm

Re: Taking color mode for granted?

Post by rdos »

It was somebody else that first used the term "MDA". What I support is the 80x25 text mode, which is the default mode after boot for PC compatibles. Because it is the default mode after boot, virtually all video cards must support it (unless an UEFI BIOS is present, but it is frequently supported even on UEFI).
linguofreak
Member
Member
Posts: 510
Joined: Wed Mar 09, 2011 3:55 am

Re: Taking color mode for granted?

Post by linguofreak »

Antti wrote:You probably know what you are talking about. However, can I ask a question? If I understood correctly, MDA was the "original" video card of IBM PC. Then there were CGA/EGA/VGA. I guess the term MDA is not relevant anymore (in any context) for modern OS developers. Is it even possible to have an 80386-based computer with MDA? Your OS surely needs an 80368 CPU or newer? Did you mean that VGA compatible cards support the MDA mode (e.g. "BIOS video mode 7h") and you support that in addition to a VGA text mode? In short: what you meant by supporting MDA?
The OP questioned whether it is safe to assume that the graphics mode at boot is color text mode with the framebuffer at B8000. As far as I know, this is a safe assumption as long as the video card supports color text mode.

I brought up the term MDA, and what I mean by supporting MDA is being able to deal with mode 7h being set at boot time (which, as far as I know, will only happen if the graphics card is an MDA).
tom9876543
Member
Member
Posts: 170
Joined: Wed Jul 18, 2007 5:51 am

Re: Taking color mode for granted?

Post by tom9876543 »

linguofreak wrote: The OP questioned whether it is safe to assume that the graphics mode at boot is color text mode with the framebuffer at B8000. As far as I know, this is a safe assumption as long as the video card supports color text mode.

I brought up the term MDA, and what I mean by supporting MDA is being able to deal with mode 7h being set at boot time (which, as far as I know, will only happen if the graphics card is an MDA).
You are wrong wrong and wrong.
Please give a web link to a Pentium or higher PC that does NOT support VGA color graphics / text mode. You can't.
So your statement is simply bullsh#t.

You then bring up "MDA" which is completely irrelevant and a total waste of time. There is not a single Pentium or higher PC that had an MDA graphics card.

It is very simple.
EVERY PENTIUM OR HIGHER PC SUPPORTS VGA COLOR TEXT AND GRAPHICS (assuming it has legacy PC BIOS).
linguofreak and others are simply talking bullsh#t.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Taking color mode for granted?

Post by Combuster »

Please give a web link to a Pentium or higher PC that does NOT support VGA color graphics / text mode. You can't.
Anything without a video card will do for that:
http://h10010.www1.hp.com/wwpc/us/en/sm ... html?dnr=1
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Taking color mode for granted?

Post by Kazinsal »

Combuster wrote:
Please give a web link to a Pentium or higher PC that does NOT support VGA color graphics / text mode. You can't.
Anything without a video card will do for that:
http://h10010.www1.hp.com/wwpc/us/en/sm ... html?dnr=1
...Well done. No on-die Intel GPU either.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Taking color mode for granted?

Post by Brendan »

Hi,
tom9876543 wrote:You then bring up "MDA" which is completely irrelevant and a total waste of time. There is not a single Pentium or higher PC that had an MDA graphics card.
Any ISA card can be plugged into any motherboard that has ISA slots. This means that nothing prevents (e.g.) an MDA card from being plugged into a Pentium 4.

To prove that nobody has every plugged an MDA (or Hercules) video card into a Pentium or later PC, you'd probably have to ask everyone in the world if they've done this, and also ask them to agree not to do it in future (e.g. in case some geeky enthusiast decides to do it immediately after you've asked them). To be perfectly honest, I wouldn't be too surprised if there are some Pentium PCs that have both MDA and VGA (as before PCI became established this was one of the few ways to get dual monitors to work).

Of course whether or not a Pentium or later PC that has an MDA card exists is entirely irrelevant. What is relevant is whether an OS developer considers it worth supporting for their OS, and how they want to deal with unsupported hardware. For an example, my OSs typically check if the video card is "VGA or later" and if it isn't it assumes the machine has no video card at all (so if there is an MDA, it won't crash or anything, but you're going to need a serial port, serial cable and dumb terminal if you want to see anything).


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
linguofreak
Member
Member
Posts: 510
Joined: Wed Mar 09, 2011 3:55 am

Re: Taking color mode for granted?

Post by linguofreak »

tom9876543 wrote:
linguofreak wrote: The OP questioned whether it is safe to assume that the graphics mode at boot is color text mode with the framebuffer at B8000. As far as I know, this is a safe assumption as long as the video card supports color text mode.

I brought up the term MDA, and what I mean by supporting MDA is being able to deal with mode 7h being set at boot time (which, as far as I know, will only happen if the graphics card is an MDA).
You are wrong wrong and wrong.
Please give a web link to a Pentium or higher PC that does NOT support VGA color graphics / text mode. You can't.
So your statement is simply bullsh#t.

You then bring up "MDA" which is completely irrelevant and a total waste of time. There is not a single Pentium or higher PC that had an MDA graphics card.

It is very simple.
EVERY PENTIUM OR HIGHER PC SUPPORTS VGA COLOR TEXT AND GRAPHICS (assuming it has legacy PC BIOS).
linguofreak and others are simply talking bullsh#t.
:roll:

Read the posts I've made in this thread again. The point of those posts was to say largely what you've just said:

Any machine produced within the last 20 or 25 years that has a graphics card at all will almost certainly support color text mode.

Reason: Assuming it has a graphics card, the only way a machine will not support color text mode is if it has an MDA card. The MDA card was introduced along with the first PCs. It has been solidly obsolete since VGA was introduced. Thus it is extremely unlikely that any PC newer than 20 or 25 years old has an MDA card, and thus it is extremely unlikely that any PC newer than 20 or 25 years old does not support color text mode (unless it has no graphics card at all).
Post Reply