home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / 100UTILI / VGAUTIL.ZIP / PROGRAM.TXT < prev    next >
Text File  |  1989-09-29  |  6KB  |  159 lines

  1. Special Programming Information
  2. *******************************
  3. This information is intended for advanced programmers writing applications or
  4. drivers to make use of the extended capabilities of the Paradise* VGA1024 *
  5. Card. This information is not needed for normal use of the
  6. Paradise VGA1024 Card. Use of the information contained here requires
  7. familiarity with assembly language programming and the workings of the IBM* 
  8. PC/AT* environments.
  9.  
  10. Programmers requiring additional general information on programming VGA may
  11. want to refer to the IBM PS/2 Technical Reference manuals as well as the
  12. following book: 
  13. Programmer's Guide to PC and PS/2 Video Systems,
  14. by Richard Wilton, Microsoft Press, 1987. (ISBN 1-55615-103-9). 
  15.  
  16. Programming Considerations
  17. **************************
  18. Refer to the Extended Video Mode table in the VGA1024 Card Software
  19. Manual for a description of the extended video modes available on your VGA1024
  20. Card.
  21.  
  22. Extended 800x600 Graphics Modes hex 58,59
  23. *****************************************
  24. 800 by 600 extended graphics modes require a multi-frequency monitor. No 
  25. checking is done in the BIOS or hardware to determine if such a monitor is
  26. connected.  This mode is available independent of the setting of the 
  27. multi-frequency monitor special timing switch (switch lever 1).
  28.  
  29. Extended 1024x768 Graphics Modes hex 5A,5B,5D
  30. *********************************************
  31. 1024 by 768 extended graphics modes require a multi-frequency monitor. No
  32. checking is done in the BIOS or hardware to determine if such a monitor is
  33. connected.  This mode is available independent of the setting of the 
  34. multi-frequency monitor special timing switch (switch lever 1).
  35.  
  36. Extended BIOS Calls
  37. Setmode Extensions
  38. ******************
  39. The extended video modes of the Paradise VGA1024 Card can be set via
  40. the standard SETMODE BIOS call or through the SET SPECIAL MODE BIOS call.
  41. Additionally support is provided for setting and locking non-VGA modes
  42. and reading and writing the Paradise Registers through the EXTENDED
  43. FUNCTIONS Setmode BIOS call.
  44.  
  45. Setmode (BIOS call AH=00) has been extended as follows:
  46.  
  47.     AH = 00h    SETMODE
  48.         AL = extended video mode
  49.             This call will set the extended Paradise VGA1024 Card
  50.             video modes:
  51.             54h, 55h, 56h, 57h, 58h, 59h.
  52.  
  53.     AX = 007E   SET SPECIAL MODE 
  54.                    This call sets modes by describing the mode desired.
  55.  
  56.        BX = The horizontal dimension of the mode desired
  57.             (in pixels for graphics modes, columns for alpha modes) 
  58.        CX = The vertical dimension of the mode desired
  59.             (in pixels for graphics modes, rows for alpha modes)
  60.        DX = The number of colors of the mode desired
  61.             (use 0 for monochrome modes)
  62.  
  63.     On exit, the BH register will equal 7E if successful.
  64.  
  65.  
  66.     AX = 007F   EXTENDED FUNCTIONS
  67.            This call supports the following functions:        
  68.  
  69.        BH = 00  SET VGA OPERATION
  70.  
  71.        BH = 01  SET NON-VGA OPERATION
  72.            Board must be set to a valid mode for non-VGA operation.
  73.            Color modes (0,1,2,3,4,5,6) will set non-VGA CGA operation.
  74.            Monochrome mode 7 will set non-VGA MDA/Hercules operation.
  75.  
  76.        BH = 02  QUERY MODE STATUS 
  77.  
  78.            On exit the following is returned:
  79.  
  80.                   BL = 0 if operating in VGA mode.
  81.                   BL = 1 if operating in non-VGA mode
  82.                   CH = Total video RAM size in 64k byte units.
  83.                   CL = Video RAM used by the current mode.
  84.  
  85.        BH = 03  LOCKS CURRENT MODE
  86.            Allows current mode (VGA or non-VGA) to survive re-boot.
  87.  
  88.     Paradise Register Extended Function Calls
  89.        BH = 09  WRITE PARADISE REGISTER 0A (3ce index 9)
  90.            BL = Value to set in the paradise register.          
  91.  
  92.        BH = 0A  WRITE PARADISE REGISTER 0B (3ce index A)
  93.            BL = Value to set in the paradise register.
  94.  
  95.        BH = 0B  WRITE PARADISE REGISTER 1 (3ce index B)
  96.            BL = Value to set in the paradise register.
  97.  
  98.        BH = 0C  WRITE PARADISE REGISTER 2 (3ce index C)
  99.            BL = Value to set in the paradise register.
  100.  
  101.        BH = 0D  WRITE PARADISE REGISTER 3 (3ce index D)
  102.            BL = Value to set in the paradise register.
  103.  
  104.        BH = 0E  WRITE PARADISE REGISTER 4 (3ce index E)
  105.            BL = Value to set in the paradise register.
  106.  
  107.  
  108.        BH = 19  READ PARADISE REGISTER 0A (3ce index 9)
  109.  
  110.            On exit the following is returned:
  111.  
  112.                BL = Value of the paradise register.
  113.  
  114.  
  115.        BH = 1A  READ PARADISE REGISTER 0B (3ce index A)
  116.  
  117.            On exit the following is returned:
  118.  
  119.                BL = Value of the paradise register.
  120.  
  121.        BH = 1B  READ PARADISE REGISTER 1 (3ce index B)
  122.  
  123.            On exit the following is returned:
  124.  
  125.                BL = Value of the paradise register.
  126.  
  127.        BH = 1C  READ PARADISE REGISTER 2 (3ce index C)
  128.  
  129.            On exit the following is returned:
  130.  
  131.                BL = Value of the paradise register.
  132.  
  133.        BH = 1D  READ PARADISE REGISTER 3 (3ce index D)
  134.  
  135.            On exit the following is returned:
  136.  
  137.                BL = Value of the paradise register.
  138.  
  139.        BH = 1E  READ PARADISE REGISTER 4 (3ce index E)
  140.  
  141.            On exit the following is returned:
  142.  
  143.                BL = Value of the paradise register.
  144.  
  145.        BH = 1F  READ PARADISE REGISTER 5 (3ce index F)
  146.  
  147.            On exit the following is returned:
  148.  
  149.                BL = Value of the paradise register.
  150.  
  151.     On exit, the BH register will equal 7F if successful.
  152.  
  153. Note: The state of Paradise Registers cannot be assumed between standard 
  154. Setmode calls, and should not be assumed in general.
  155.  
  156. (C) 1988, 1989 Paradise Systems, Inc. All rights reserved.
  157. * Paradise and VGA1024 are trademarks of Paradise Systems, Inc.
  158. * IBM and AT are trademarks of International Business Machines Corp.
  159.