Alternate function..

 BBS: Inland Empire Archive
Date: 07-05-92 (07:05)             Number: 227
From: PHIL HODGES                  Refer#: NONE
  To: ALL                           Recvd: NO  
Subj: Alternate function..           Conf: (2) Quik_Bas
   Does anyone know what the "feature bits" and "switch settings" are
for with Int 10h, function 12h (Alternate Function Select) ?? I wrote
up the following code for practice, and it works (at least on PS, EGA,
VGA and MCGA...for EGA info), but I don't know what these are for
(they're in CX). Here's the code, should anyone be interested:

'$INCLUDE: 'qb.bi'

DIM Regs AS RegType

  Regs.AX = &H1200
  Regs.BX = &H10

  INTERRUPT &H10, Regs, Regs

  BH = Regs.BX \ 256     'Get BH
  BL = Regs.BX MOD 256   'Get BL
  CH = Regs.CX \ 256     'Get CH
  CL = Regs.CX MOD 256   'Get CL

  CLS
  PRINT "Mode in effect: ";
 SELECT CASE BH
   CASE 0
   PRINT "Color"
   CASE 1
   PRINT "Monochrome"
  END SELECT

  PRINT "Memory on card: ";
  SELECT CASE BL
  CASE 0
    PRINT "64K"
  CASE 1
    PRINT "128K"
  CASE 2
    PRINT "192K"
  CASE 3
    PRINT "256K"
  CASE 4
    PRINT "Uncertain! More than 256K, likely"
   END SELECT

 PRINT "Feature bits: "; CH
 PRINT "Switch settings: "; CL

 END

 Again, anyone know what the last two MEAN? I get 15 in CH and 9 in
CL, and have an ATI EGA Wonder w/256K

 -Phil

__~~_
 X SLMR 2.1a X Does anyone have any spare cache?

--- Maximus 2.00
 * Origin: The Gamorian Vortex Project (1:105/601)
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