Re: CGA or Mono?

 BBS: Inland Empire Archive
Date: 09-12-92 (11:30)             Number: 255
From: TONY ELLIOTT                 Refer#: NONE
  To: BOB PERKINS                   Recvd: NO  
Subj: Re: CGA or Mono?               Conf: (2) Quik_Bas
Bob,

BP>  Bits 4 and 5 of the equipment byte are supposed to indicate whether you
  >have 40x25 color, 80x25 color, or 80x25 mono.  There is an
  >old text file around usually called peekpoke.zip on BBSs
  >that has a bunch of this stuff in it.  I haven't tested the
  >code below, so you may have to debug it.  :-)

That's the way I used to do it <g>. After a couple of my apps were
distributed on a wide basis, I found that many systems do not have the
system switches set correctly. In such a case, the system will boot in
the 40 column mode (or something) and the user would put "MODE CO80"
in their AUTOEXEC.BAT to set the correct mode.

The equipment byte only contains the -startup- video mode. Not the
current one. 0:449h contains the current video mode, and doesn't
require any bit-twiddling. FWIW ...

Tony
___
 X 1st 1.01b #1030s X Beware of programmers that carry screwdrivers

--- Maximus 2.01wb
 * Origin: Oakland BBS (1:133/706)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET