PB256MDS Version 2.0 ====================== By Victor Berenbaum Copyright Aero Corporation (C) 1994-95 ***> S H A R E W A R E <*** ***> P l e a s e r e g i s t e r <*** This library was created for use with PowerBasic 3.0 or higher version. The library contains SVGA routines and complete managment of video modes with VESA SuperVGA card. The next version of SuperVGA library will contain the support over 20 video cards, graphic shape statements (over 15 different shapes), animation settings, and more... If you have already purchased the PB256MDS 2.0, you will not have to pay the full price for the next version of SuperVGA library, only $5.00 plus. Use the serial number given to you in the registered version of PB256MDS to get the next version of SuperVGA library for only $5.00. To order PB256MDS, complete ORDER.FRM the order from file. ***>>>> When you order you will also receive assembly PB256MDS.OBJ files FREE Look for the next version of SuperVGA library on America OnLine or on your local BBS or on the following BBS: Exec-PC BBS (The largest BBS on the world): 2400 Baud: (414) 789-4210 14.4K Baud: (414) 789-4360 Midnight Driver Super Data Highway (Home/Supported BBS): Data: (212) 750-3643 300 Baud - 28800 Baud Support Voice: (212) 626-6670 4 Lanes Using Hayes Optima FAX: (212) 626-6999 28800 V.34/V.FC V.42bis Sysop: Dave Lew Co-Sysop: Stan Loo TECH support: If you have any questions, or tech problems with PB256MDS, then you can contact me online: INTERNET: aero@ot.com -------------------------------------------------------------------------------- MODE (x%) - VESA SuperVGA - SET SuperVGA VIDEO MODE 01 - 640x480x16 02 - 640x480x256 03 - 800x600x16 04 - 800x600x256 05 - 1024x768x16 06 - 1024x768x256 07 - 1280x1024x16 08 - 1280x1024x256 09 - 80x60 text 10 - 132x25 text 11 - 132x43 text 12 - 132x50 text 13 - 132x60 text 14 - 320x200x32K 15 - 320x200x64K 16 - 320x200x16M 17 - 640x480x32K 18 - 640x480x64K 19 - 640x480x16M 20 - 800x600x32K 21 - 800x600x64K 22 - 800x600x16M 23 - 1024x768x32K 24 - 1024x768x64K 25 - 1024x768x16M 26 - 1280x1024x32K 27 - 1280x1024x64K 28 - 1280x1024x16M EXAMPLE: $INCLUDE "PB256MDS.INC" $LINK "PB256MDS.PBU" MODE 19 'Sets to video mode 640x480x16M (16M=16,777,216 colors) FOR A%=1 to 256 PLOT A%,A%,A% NEXT A% NOTE: If you don't see any results on the screen or the result is strange/(bad), then your video card does not support the video resolution indicated by MODE statement. -------------------------------------------------------------------------------- MIXMODES (md%) - Sets a video mode with different address | unlike MODE md% - mode from 1 to 5 1 - Text mode (not usual) 2 - Text mode #2 (not as usual) 3 - Text mode #3 (not as usual at all) 4 - 320x200x256 video mode 5 - 1024x768x256 video mode -------------------------------------------------------------------------------- PLOT (x%,y%,c%) - Plots the point on the screen - x% - X axis coordinates y% - Y axis coordinates c% - color (0 - 16777215) EXAMPLE: See MODE statement NOTE: PowerBasic's LINE, PSET, PAINT, etc.. statements will not work in video modes higher then 640x480x256 TIP: With PLOT statement you can create your own graphic statements using SUB statement and mathematical functions for creating any kind of shapes. The next version of PB256MDS will contain already made graphic shapes and probably animation settings. --------------------------------------------------------------------------------- DRWBOX (x1%,y1%,x2%,y2%,c%) - Draws a box on the screen - x1% - X axis (on the upper corner) coordinates y1% - Y axis (on the upper corner) coordinates x2% - X axis (on the lower corner) coordinates y2% - Y axis (on the lower corner) coordinates c% - color of the box (0 - 16777215) EXAMPLE: $INCLUDE "PB256MDS.INC" $LINK "PB256MDS.PBU" MODE 2 'Sets video mode 640x480x256 FOR Q%=1 to 100 DRWBOX RND*640,RND*480,RND*640,RND*480,RND*256 NEXT TIP_NOTE: This is one of the graphic statement that was created with PLOT statement as an example. -------------------------------------------------------------------------------- EXPANDMODE (tof%) - Cirrus Logic BIOS v3.02 - LCD panel - ENABLE/DISABLE EXPAND MODE tof% - 1=enable or 0=disable -------------------------------------------------------------------------------- BOLDMODE (tof%) - Cirrus Logic BIOS v3.02 - LCD panel - ENABLE/DISABLE BOLD MODE tof% - 1=enable or 0=disable -------------------------------------------------------------------------------- SETBKGRDCOL (colr%) - Sets background color of the screen - colr% - 0 to 16777215 (depends on your video card) EXAMPLE: $INCLUDE "PB256MDS.INC" $LINK "PB256MDS.PBU" MODE 3 'Sets video mode to 800x600x16 SETBKGRDCOL 255 FOR Q%=0 TO 256 PLOT Q%,Q%,Q% NEXT -------------------------------------------------------------------------------- SRDDM (x%) - Diamond Stealth 24 - SET/RESET DUAL DISPLAY MODE x% - 1 = reset 2 = set dual display, 32KB VGA test 3 = set dual display, 64KB VGA test NOTE: This function/procedure is very powerful and not many video cards suppot it, only VESA with 64 BIT support and 80486 or better CPU. -------------------------------------------------------------------------------- VIDEOON - Turns Video On EXAMPLE: $INCLUDE "PB256MDS.INC" $LINK "PB256MDS.PBU" MODE 3 'Sets video mode to 800x600x16 VIDEOOFF FOR Q%=1 to 100 PLOT RND*800,RND*600,RND*16 NEXT VIDEOON -------------------------------------------------------------------------------- VIDEOOFF - Turns Video Off EXAMPLE: See VIDEOON -------------------------------------------------------------------------------- Well, thats all for this version of SuperVGA library. Thank you! PLEASE REPORT BUGS AT: Internet: victorb@slip.net * * * * * * * * * * * * * * * * * * * The SuperVGA libary was created * * using assembly language 8086/88 * * - 80486. This library is for * * professional use only. * * * * * * * * * * * * * * * * * * * This document Copyright (c) 1995 Aero Corporation. All rights reserved.